Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added documentation for setEnabled method.
  • Loading branch information
jd-alexander committed Jan 7, 2016
1 parent 2c33942 commit 1976268
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ app:liked="true"

# Button State

To set the inital state of the button you simply use the setLiked functionality via XML or Java. This will show the button in the liked state with the drawable that you selected etc.
To set the inital liked state of the button you simply use the setLiked functionality via XML or Java. This will show the button in the liked state with the drawable that you selected.

#### XML

Expand All @@ -115,6 +115,25 @@ app:liked="true"

likeButton.setLiked(true);
```

You can also set if the button is to be enabled or disabled. Once disabled, the animation, listener or any other functionality of the button won't be triggered.

#### XML

```
app:enabled="false"
```

#### Java


```java

likeButton.setEnabled(false);
```



---

# Like Event Listener
Expand Down

0 comments on commit 1976268

Please sign in to comment.