Skip to content

Commit ea6739d

Browse files
authored
Merge pull request #7 from stepstone-tech/readme-typos-patch
Updated typos and list numbers in README.md
2 parents 388a057 + 934d684 commit ea6739d

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

README.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ compile 'com.stepstone.stepper:material-stepper:1.0.0'
4444
app:ms_stepperType="progress_bar" />
4545
```
4646

47-
For a complete list of StepperLayout attributes see [StepperLayout attributes](#StepperLayout attributes)
47+
For a complete list of StepperLayout attributes see [StepperLayout attributes](#StepperLayout attributes).
4848

4949
### Create step Fragment(s)
50-
Step fragment must extend [android.support.v4.app.Fragment](http://developer.android.com/reference/android/support/v4/app/Fragment.html)
50+
Step fragments must extend [android.support.v4.app.Fragment](http://developer.android.com/reference/android/support/v4/app/Fragment.html)
5151
and implement `com.stepstone.stepper.Step`
5252

5353
```java
@@ -170,30 +170,33 @@ and we want to have them so that we can show an info message for the user.
170170
In order to set that color:
171171

172172
1. Create a new color selector in `res/color`
173-
```xml
174-
<?xml version="1.0" encoding="utf-8"?>
175-
<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
176-
<item app:state_verification_failed="true" android:color="#30BDBDBD"/>
177-
<item android:color="@color/ms_white"/>
178-
</selector>
179-
```
173+
174+
```xml
175+
<?xml version="1.0" encoding="utf-8"?>
176+
<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
177+
<item app:state_verification_failed="true" android:color="#30BDBDBD"/>
178+
<item android:color="@color/ms_white"/>
179+
</selector>
180+
```
180181
2. Change button's (text) color in layout file
181-
```xml
182-
<?xml version="1.0" encoding="utf-8"?>
183-
<com.stepstone.stepper.StepperLayout xmlns:android="http://schemas.android.com/apk/res/android"
184-
xmlns:app="http://schemas.android.com/apk/res-auto"
185-
android:id="@+id/stepperLayout"
186-
android:layout_width="match_parent"
187-
android:layout_height="match_parent"
188-
app:ms_stepperType="dots"
189-
app:ms_nextButtonColor="@color/ms_custom_button_text_color"
190-
app:ms_completeButtonColor="@color/ms_custom_button_text_color" />
191-
```
182+
183+
```xml
184+
<?xml version="1.0" encoding="utf-8"?>
185+
<com.stepstone.stepper.StepperLayout xmlns:android="http://schemas.android.com/apk/res/android"
186+
xmlns:app="http://schemas.android.com/apk/res-auto"
187+
android:id="@+id/stepperLayout"
188+
android:layout_width="match_parent"
189+
android:layout_height="match_parent"
190+
app:ms_stepperType="dots"
191+
app:ms_nextButtonColor="@color/ms_custom_button_text_color"
192+
app:ms_completeButtonColor="@color/ms_custom_button_text_color" />
193+
```
192194
3. Toggle the state in code
193-
```java
195+
196+
```java
194197
mStepperLayout.setNextButtonVerificationFailed(!enabled);
195198
mStepperLayout.setCompleteButtonVerificationFailed(!enabled);
196-
```
199+
```
197200

198201
### Make an IO operation before going to the next step (optional)
199202
If the user wants to e.g. save something in the database or make a network call on a separate Thread after clicking on the Next button

0 commit comments

Comments
 (0)