Skip to content

Commit

Permalink
Modify README for new Version
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra committed Dec 14, 2018
1 parent c797d2b commit 40bfaf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private void setHitButtonStyle(){
);
}

public void setHintButtonColor(int color){
public void setSelectedItemHintColor(int color){
this.HINT_BUTTON_COLOR = color;
this._hintButton.setTextColor(isSelected() ? this.HINT_BUTTON_COLOR : this.HINT_BUTTON_NOT_SELECTED_COLOR);
}
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ allprojects {

**Step 2.** Add the dependency:
```groovy
implementation 'com.github.sadra:AwesomeSpinner:1.1.0'
implementation 'com.github.sadra:AwesomeSpinner:1.3.0'
```

## How To Use
Expand Down Expand Up @@ -93,6 +93,8 @@ there is some controls for your spinner:
| setSelection(TEXT) | `String` value | You should pass the **item value** to select the item programatically |
| setSpinnerEnable(BOOLEAN); | `Boolean` value | If you want enable or disable the spinner, you should call this method. |
| isSpinnerEnable(); | - | Result = `boolean`: Returns **true** if the spinner is enabled, and vice versa |
| setSelectedItemHintColor(); | `int` Color | If you need to change the **Selected Item Hint** color, just call the method and pass you color, ex: `Color.BLUE` |
| setDownArrowTintColor(); | `int` Color | If you need to change the **Down Arrow** hint color, just call the method and pass you color, ex: `Color.BLUE` |

You can see the [EXAMPLE PROJECT](https://github.com/amlashi-sadra/AwesomeSpinner/tree/master/app/src/main) for more infromation.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.TextView;
Expand All @@ -34,7 +33,7 @@ protected void onCreate(Bundle savedInstanceState) {
spinnerRTL = (AwesomeSpinner) findViewById(R.id.awesomeSpinner_example_rtl);
spinnerLTR = (AwesomeSpinner) findViewById(R.id.awesomeSpinner_example_ltr);

spinnerLTR.setHintButtonColor(Color.BLUE);
spinnerLTR.setSelectedItemHintColor(Color.BLUE);
spinnerLTR.setDownArrowTintColor(Color.RED);

//Initialize the Adapter and spinnerRTL listener
Expand Down

0 comments on commit 40bfaf0

Please sign in to comment.