Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelbussa committed Jan 24, 2017
1 parent e6e3408 commit 0ca5d85
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,28 @@ app:hv_add_icon="@drawable/ic_action_settings"
headerView.setShowAddButton(true);
app:hv_show_add_button="true"
```
#### Callback
```Java
headerView.setCallback(new HeaderCallback() {

@Override
public boolean onSelect(int id, boolean isActive) {
//return profile id selected and if is the active profile
return true; //true for close the dialog, false for do nothing
}

@Override
public boolean onItem(int id) {
//return witch buttom item is selected
return true; //true for close the dialog, false for do nothing
}

@Override
public boolean onAdd() {
return true; //true for close the dialog, false for do nothing
}
});
```
#### Loading image from network
Just add this in your class Application (of course you can use your preferred libs for load images)
```Java
Expand Down

0 comments on commit 0ca5d85

Please sign in to comment.