Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra authored Apr 2, 2019
1 parent 5b7b82b commit 9d90944
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ there is some controls for your spinner:
| getSelectedItem() | - | Result = `String`: Returns the selected item |
| getSelectedItemPosition() | - | Result = `int`: Returns the selected item position. If there were no selected item, it returns `-1`. |
| isSelected() | - | Result = `boolean`: Returns **true** if any item selected, and vice versa. |
| setSelection(NUMBER) | `int` position | You should pass the **position of item** to select the item programatically. |
| setSelection(TEXT) | `String` value | You should pass the **item value** to select the item programatically. |
| setSpinnerHint(TEXT) | `String` value | You should pass a `sting` value as the hint text for the spinner. |
| setSpinnerEnable(BOOLEAN); | `Boolean` value | If you want enable or disable the spinner, you should call this method. |
| setSelection(`NUMBER`) | `int` position | You should pass the **position of item** to select the item programatically. |
| setSelection(`TEXT`) | `String` value | You should pass the **item value** to select the item programatically. |
| setSpinnerHint(`TEXT`) | `String` value | You should pass a `sting` value as the hint text for the spinner. |
| 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. |
| setHintTextColor() | `int` Color | If you need to change the **Spinner Hint Text** color, just call the method and pass you color, ex: `Color.BLUE`. |
| 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`. |
| setDropDownViewResource(RESOURCE) | `int` Resource | If you need to change the **Spinner Row stype**, just call the method and pass you resource, ex: `R.layout.my_sipnner_row_item`. |
| setDropDownViewResource(`RESOURCE`) | `int` Resource | If you need to change the **Spinner Row stype**, just call the method and pass you resource, ex: `R.layout.my_sipnner_row_item`. |
| clearSelection() | - | It clears the spinner selection. |

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

0 comments on commit 9d90944

Please sign in to comment.