Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzaitsev committed Nov 25, 2015
1 parent bff827d commit ed1f865
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Check this [project on Behance] (https://www.behance.net/gallery/20411445/Mobile
*For a working implementation, have a look at the ```app``` module*

#### 1. Clone repository and add sources into your project or use Gradle:
``` compile 'com.yalantis:contextmenu:1.0.4' ```
``` compile 'com.yalantis:contextmenu:1.0.5' ```
#### 2. Create list of `MenuObject`, which consists of icon or icon and description.
You can use any `resource, bitmap, drawable, color` as image:
```
Expand Down Expand Up @@ -111,6 +111,8 @@ public class MainActivity extends ActionBarActivity implements OnMenuItemClickLi
public void onMenuItemClick(View clickedView, int position) {
//Do something here
}
mMenuDialogFragment.setItemClickListener(this);
```

## Customization:
Expand Down Expand Up @@ -142,6 +144,12 @@ To stay `Context Menu` below Status Bar set `fitSystemWindows` to true and `clip

# Changelog

### Version: 1.0.5

* Fixed `setClosableOutside` [issue](https://github.com/Yalantis/Context-Menu.Android/issues/25).
* Fixed `setAnimationDuration` doesn´t work for open event [issue](https://github.com/Yalantis/Context-Menu.Android/issues/22).
* Fixed menu item listener setting mechanism. It can be not activity but any class that implements listeners now. [Issue](https://github.com/Yalantis/Context-Menu.Android/issues/24). Attention! You have to set listeners to the context fragment manually. Check block 5 in the `Usage`.

### Version: 1.0.4

* Old `ContextMenuDialogFragment` `newInstance` methods are deprecated. Use new universal one that received `MenuParams`.
Expand Down

0 comments on commit ed1f865

Please sign in to comment.