Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daCapricorn/ArcMenu
An android custom view which looks like the menu in Path 2.0 (for iOS).
https://github.com/daCapricorn/ArcMenu
Last synced: 4 months ago
JSON representation
An android custom view which looks like the menu in Path 2.0 (for iOS).
- Host: GitHub
- URL: https://github.com/daCapricorn/ArcMenu
- Owner: daCapricorn
- License: other
- Created: 2012-01-23T08:32:34.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T11:04:44.000Z (over 4 years ago)
- Last Synced: 2024-06-28T11:33:35.866Z (5 months ago)
- Language: Java
- Homepage:
- Size: 146 KB
- Stars: 1,336
- Watchers: 122
- Forks: 580
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-ui - https://github.com/daCapricorn/ArcMenu
- awesome-android-ui - https://github.com/daCapricorn/ArcMenu
README
# ArcMenu & RayMenu
## ArcMenuAn android custom view which looks like the menu in [Path 2.0](https://path.com/) (for iOS).
![Preview](https://ipfs.io/ipfs/QmYPehihi4ZbmFf1vhxCkTV7WTgxck5fxb5B7aGCBCKi27)
![Preview](https://ipfs.io/ipfs/QmdE9P5FYq1goN4dM5L8r8ADqS2HdbzYLKTCEVKrHjh6gp)## RayMenu
![Preview](https://ipfs.io/ipfs/QmW2nUZrEreYUMzgvApoSQQbx5wJ5UGJwXjkYDPdd1twbo)
## AboutThe user experience in [Path 2.0](https://path.com/) (for iOS) is amazing, but the android version miss much.
Just for fun, I try to realize the amazing menu for android, which could be equal to the iOS version's.
## Usage
If you want to use this library you must before all indicate to your application
that you want to use it by launching the following command from the root
directory of your application```
$ android update project --library ../relative/path/to/the/library --path .
```
where the path is the relative path to the ``library`` directory in this repository.To setup the menu:
``` java
ArcMenu menu = (ArcMenu) findViewById(R.id.arc_menu);final int itemCount = ITEM_DRAWABLES.length;
for (int i = 0; i < itemCount; i++) {
ImageView item = new ImageView(this);
item.setImageResource(ITEM_DRAWABLES[i]);final int position = i;
menu.addItem(item, new OnClickListener() {@Override
public void onClick(View v) {
Toast.makeText(MainActivity.this, "position:" + position, Toast.LENGTH_SHORT).show();
}
});// Add a menu item
}
```If you want to change the default appearence for ArcMenu:
in **arc_menu.xml**
custom:childSize="50px"
custom:fromDegrees="0.0"
custom:toDegrees="300.0"or in **ArcMenu.java**
``` java
arcLayout.setChildSize(50);
arcLayout.setArc(0.0f, 300.0f);
```