#ArcMenu & RayMenu
##ArcMenu
An android custom view which looks like the menu in [Path 2.0](https://path.com/) (for iOS).
![Preview](https://dl.dropbox.com/u/11369687/preview0.png)
![Preview](https://dl.dropbox.com/u/11369687/preview1.png)
##RayMenu
![Preview](https://dl.dropbox.com/u/11369687/raymenu.png)
##About
The 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);
```
##TODO
Use attribute like ``custom:childSize`` directly into ``RayMenu`` and ``ArcMenu`` XML declaration. Also
indicate the ``Drawable`` instances as sub elements of these tags.
##Author
**Capricorn**
I'm glad to make friends with the people who persist in faith and follow their dreams.
Please let me know you are around.
Google+: [+魔羯](https://plus.google.com/107460592910747948011)
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
最新资源
- 3DMAX构图神器下载
- opencv-4.10.0源码,64位-V2019编译好的windows库
- vue.min.js下载
- 深入了解Java编程语言:从入门到应用领域的全面解析
- DBN-ELM深度置信网络融合极限学习机多输入单输出回归预测(Matlab完整源码和数据)
- 基于springboot的点餐平台网站lw+ppt
- FM1702 F1701 FM17xx非接触卡读卡机专用芯片,例程完整,验证过,使用STM32芯片
- 深度学习与卷积神经学习资料
- get-command-4-run-container 镜像,Docker查看运行容器启动命令镜像
- 基于springboot的在线动漫信息平台lw+ppt
- Scratch 100个有趣游戏源码.zip
- Java与Python编程语言特性、应用场景及其学习选择
- 基于python无人艇轨迹预测检查 框架html + css + jquery + python + django + orm+pytorch 普通用户 qqq 1
- 基于C++实现的经典数学与趣味计算程序:素数求和、随机数猜测、最大公约数、π及e值估算
- oracle连接数据库工具Oracle SQL Developer
- C++程序设计课程实践-数组操作与文件IO综合运用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈