-
Notifications
You must be signed in to change notification settings - Fork 235
Setting Dimensions
Kofi Gyan edited this page Sep 13, 2016
·
4 revisions
You can change the dimension of the state , state number , state line and state description
- spb_stateSize
Example :
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_stateSize="40dp"/>
- setStateSize(float)
Example :
...........................
...........................
StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.your_state_progress_bar_id);
stateProgressBar.setStateSize(40f);
- spb_stateTextSize
Example :
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_stateTextSize="15sp"/>
- setStateNumberTextSize(float)
Example :
...........................
...........................
StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.your_state_progress_bar_id);
stateProgressBar.setStateNumberTextSize(20f);
- spb_stateLineThickness
Example :
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_stateLineThickness="10dp"/>
- setStateLineThickness(float)
Example :
...........................
...........................
StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.your_state_progress_bar_id);
stateProgressBar.setStateLineThickness(10f);
- spb_stateDescriptionSize
Example :
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_stateDescriptionSize="20sp"/>
- setStateDescriptionSize(float)
Example :
...........................
...........................
StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.your_state_progress_bar_id);
stateProgressBar.setStateDescriptionSize(18f);