#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)
ArcMenu-path菜单master.zip项目安卓应用源码下载
版权申诉
191 浏览量
2022-03-09
00:29:07
上传
评论
收藏 63KB ZIP 举报
yxkfw
- 粉丝: 76
- 资源: 2万+
最新资源
- 本科毕业设计基于C# wpf人脸识别的考勤系统的设计与实现源码.zip
- 基于Ruoyi+uniapp实现学生考勤系统 学生考勤源码+项目说明.zip
- feae6bc968ca68a099455d8b8a8dea35
- 基于Pytorch训练CIRAR10上分类算法.zip
- Pytorch-pytorch深度学习教程之Tensorboard.zip
- 基于C++和Python开发yolov8-face作为人脸检测器dlib作为人脸识别器的人脸考勤系统源码+项目说明.zip
- Pytorch-pytorch深度学习教程之变分自动编码器.zip
- Pytorch-pytorch深度学习教程之神经风格迁移.zip
- Pytorch-pytorch深度学习教程之深度残差网络.zip
- Pytorch-pytorch深度学习教程之循环神经网络.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈