Skip to content

State Description Top Spacing

Kofi Gyan edited this page Sep 13, 2016 · 4 revisions

You can increase or decrease the space between the state description and the state progressbar.

State Description Top Space Incrementer :

XML

  • spb_descriptionTopSpaceIncrementer

Example :

 <com.kofigyan.stateprogressbar.StateProgressBar
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     app:spb_descriptionTopSpaceIncrementer="2dp"/> 

Related Method

  • setDescriptionTopSpaceIncrementer(float)

Example :

........................... 
...........................

StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.your_state_progress_bar_id);
stateProgressBar.setDescriptionTopSpaceIncrementer(10f);

State Description Top Space Decrementer :

XML

  • spb_descriptionTopSpaceDecrementer

Example :

 <com.kofigyan.stateprogressbar.StateProgressBar
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     app:spb_descriptionTopSpaceDecrementer="2dp"/> 

Related Method

  • setDescriptionTopSpaceDecrementer(float)

Example :

........................... 
...........................

StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.your_state_progress_bar_id);
stateProgressBar.setDescriptionTopSpaceDecrementer(10f);

Clone this wiki locally