Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
18 changes: 1 addition & 17 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions .idea/modules.xml

This file was deleted.

76 changes: 44 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies {
android:id="@+id/your_state_progress_bar_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="four"
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="4"
app:spb_stateBackgroundColor="#BDBDBD"
app:spb_stateForegroundColor="#009688"
app:spb_stateNumberBackgroundColor="#808080"
Expand Down Expand Up @@ -64,11 +64,14 @@ protected void onCreate(Bundle savedInstanceState) {

## XML Attributes

spb_currentStateNumber => Current state number. Must be one of the following constant values : one , two , three , four .
Related method : setCurrentStateNumber(StateNumber)
spb_currentStateNumber => Current state number (starts from 1).
Related method : setCurrentStateNumber(int)

spb_maxStateNumber => Maximum state number. Must be one of the following constant values : one , two , three , four .
Related method : setMaxStateNumber(StateNumber)
spb_maxStateNumber => Maximum state number.
Related method : setMaxStateNumber(int)

spb_textStartNumber => The number of the first label.
Related method : setTextStartNumber(int)

spb_stateBackgroundColor => State background color. Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
Related method : setBackgroundColor(int)
Expand All @@ -87,8 +90,17 @@ protected void onCreate(Bundle savedInstanceState) {

spb_stateDescriptionColor => State description color. Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
Related method : setStateDescriptionColor(int)

spb_stateSize => State size . Must be a dimension value with preferrable unit of dp eg. 25dp

spb_currentStateDescriptionBackgroundColor => Current state description background color. Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
Related method : setCurrentStateBackgroundDescriptionColor(int)

spb_stateDescriptionBackgroundColor => State description background color. Should be a color value. Possible forms are "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
Related method : setStateBackgroundDescriptionColor(int)

spb_stateHighlightMode => Choose which states should be colored according to currentState. Should be one of "none", "current" (the current state only) and "finished" (the current state and all states before it).
Related method : setStateHighlightMode(StateHighlightMode)

spb_stateSize => State size. Must be a dimension value with preferrable unit of dp eg. 25dp
Related method : setStateSize(float)

spb_stateTextSize => State text(number) size . Must be a dimension value with preferrable unit of sp eg. 15sp
Expand Down Expand Up @@ -177,8 +189,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="one"
app:spb_maxStateNumber="two"/>
app:spb_currentStateNumber="1"
app:spb_maxStateNumber="2"/>

```

Expand All @@ -191,8 +203,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="two"
app:spb_maxStateNumber="three"/>
app:spb_currentStateNumber="2"
app:spb_maxStateNumber="3"/>

```

Expand All @@ -205,8 +217,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="four"/>
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="4"/>

```

Expand All @@ -219,8 +231,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="four"
app:spb_maxStateNumber="five"/>
app:spb_currentStateNumber="4"
app:spb_maxStateNumber="5"/>

```

Expand All @@ -234,8 +246,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="four"
app:spb_maxStateNumber="five"
app:spb_currentStateNumber="4"
app:spb_maxStateNumber="5"
app:spb_stateNumberIsDescending="true"/>

```
Expand All @@ -250,8 +262,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="four"
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="4"
app:spb_checkStateCompleted="true"/>

```
Expand All @@ -266,8 +278,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="four"
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="4"
app:spb_enableAllStatesCompleted="true"/>

```
Expand All @@ -280,8 +292,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="four"
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="4"
app:spb_stateBackgroundColor="#BDBDBD"
app:spb_stateForegroundColor="#DB0082"
app:spb_stateNumberBackgroundColor="#808080"
Expand Down Expand Up @@ -318,8 +330,8 @@ StateProgressBar stateProgressBar = (StateProgressBar) findViewById(R.id.state_p
android:id="@+id/your_state_progress_bar_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="two"
app:spb_maxStateNumber="four"/>
app:spb_currentStateNumber="2"
app:spb_maxStateNumber="4"/>

String[] descriptionData = {"Details", "Status", "Photo", "Confirm"};

Expand Down Expand Up @@ -368,8 +380,8 @@ protected void onCreate(Bundle savedInstanceState) {
<com.kofigyan.stateprogressbar.StateProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="four"
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="4"
app:spb_stateBackgroundColor="#BDBDBD"
app:spb_stateForegroundColor="#009688"
app:spb_stateNumberBackgroundColor="#808080"
Expand Down Expand Up @@ -435,8 +447,8 @@ protected void onCreate(Bundle savedInstanceState) {
android:id="@+id/your_state_progress_bar_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="five"/>
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="5"/>

String[] descriptionData = {"Details\nPlace", "Status\nPrice", "Photo\nShoot", "Confirm\nResponse" , "Buy\nDone"};

Expand All @@ -461,8 +473,8 @@ protected void onCreate(Bundle savedInstanceState) {
android:id="@+id/your_state_progress_bar_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:spb_currentStateNumber="three"
app:spb_maxStateNumber="five"
app:spb_currentStateNumber="3"
app:spb_maxStateNumber="5"
app:spb_justifyMultilineDescription="true"
app:spb_descriptionLinesSpacing="5dp"/>

Expand Down
19 changes: 0 additions & 19 deletions StateProgressBar.iml

This file was deleted.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
// NOTE: Do not place your application dependencies here; they belong
Expand All @@ -19,4 +19,4 @@ allprojects {
jcenter()
google()
}
}
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
#Wed Jul 05 13:59:29 BRT 2017
# Remove this sometimes to resolve gradle issue

android.enableJetifier=true
android.useAndroidX=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Jan 27 16:37:10 GMT 2018
#Fri Mar 19 19:40:40 CST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
Loading