Skip to content

Architecture Overview

Kofi Gyan edited this page Sep 12, 2016 · 51 revisions
       The diagram below represent the architecture overview of StateProgressBar.

alt tag

1. State Background Color

Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

  • XML Attribute - app:spb_stateBackgroundColor
  • Related method - setBackgroundColor(int)
    Learn More

2. State Foreground Color

Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

  • XML Attribute - app:spb_stateForegroundColor
  • Related method - setForegroundColor(int)
    Learn More

3. Check State Completed

Must be a boolean value,either "true" or "false".

  • XML Attribute - app:spb_checkStateCompleted
  • Related method - checkStateCompleted(boolean)
    Learn More

4. State Number Background Color

Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

  • XML Attribute - app:spb_stateNumberBackgroundColor
  • Related method - setStateNumberBackgroundColor(int)
    Learn More

5. State Line Thickness

Must be a dimension value with preferrable unit of dp eg. 10dp

  • XML Attribute - app:spb_stateLineThickness
  • Related method - setStateLineThickness(float)
    Learn More

6. Current State

Must be one of the following constant values : one , two , three , four .

  • XML Attribute - app:spb_currentStateNumber
  • Related method - setCurrentStateNumber(StateNumber)
    Learn More

7. Maximum State

Must be one of the following constant values : one , two , three , four .

  • XML Attribute - app:spb_maxStateNumber
  • Related method - setMaxStateNumber(StateNumber)
    Learn More

8. State Description

Provide array of values to set state description data. For state description color, possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

9. Current State Description

Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

  • XML Attribute - spb_currentStateDescriptionColor
  • Related method - setCurrentStateDescriptionColor(int)
    Learn More

10. Description Top Space

Must be a dimension value with preferrable unit of dp eg. 10dp

  • XML Attribute - spb_descriptionTopSpaceIncrementer
  • Related method - setDescriptionTopSpaceIncrementer(float)
  • XML Attribute - spb_descriptionTopSpaceDecrementer
  • Related method - setDescriptionTopSpaceDecrementer(float)
    Learn More

11. State Number Foreground Color

Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

  • XML Attribute - app:spb_stateNumberForegroundColor
  • Related method - setStateNumberForegroundColor(int)
    Learn More