PathLikeMenu

所属分类:android开发
开发工具:Java
文件大小:57KB
下载次数:0
上传日期:2019-05-08 03:57:11
上 传 者zujiyun
说明:  a animatied menu that like Android social app Path

文件列表:
LICENSE (549, 2013-08-19)
default.properties (360, 2013-08-19)
library (0, 2013-08-19)
library\AndroidManifest.xml (210, 2013-08-19)
library\project.properties (381, 2013-08-19)
library\res (0, 2013-08-19)
library\res\drawable (0, 2013-08-19)
library\res\drawable\composer_button.xml (280, 2013-08-19)
library\res\drawable\composer_button_normal.png (4096, 2013-08-19)
library\res\drawable\composer_button_pressed.png (4096, 2013-08-19)
library\res\drawable\composer_icn_plus.xml (284, 2013-08-19)
library\res\drawable\composer_icn_plus_normal.png (994, 2013-08-19)
library\res\drawable\composer_icn_plus_pressed.png (1009, 2013-08-19)
library\res\layout (0, 2013-08-19)
library\res\layout\arc_menu.xml (1063, 2013-08-19)
library\res\layout\ray_menu.xml (1052, 2013-08-19)
library\res\values (0, 2013-08-19)
library\res\values\attrs.xml (677, 2013-08-19)
library\src (0, 2013-08-19)
library\src\com (0, 2013-08-19)
library\src\com\capricorn (0, 2013-08-19)
library\src\com\capricorn\ArcLayout.java (10933, 2013-08-19)
library\src\com\capricorn\ArcMenu.java (6762, 2013-08-19)
library\src\com\capricorn\RayLayout.java (7507, 2013-08-19)
library\src\com\capricorn\RayMenu.java (4470, 2013-08-19)
library\src\com\capricorn\RotateAndTranslateAnimation.java (4351, 2013-08-19)
proguard.cfg (1248, 2013-08-19)
sample (0, 2013-08-19)
sample\AndroidManifest.xml (717, 2013-08-19)
sample\project.properties (400, 2013-08-19)
sample\res (0, 2013-08-19)
sample\res\drawable-hdpi (0, 2013-08-19)
sample\res\drawable-hdpi\ic_launcher.png (4147, 2013-08-19)
sample\res\drawable-ldpi (0, 2013-08-19)
sample\res\drawable-ldpi\ic_launcher.png (1723, 2013-08-19)
sample\res\drawable-mdpi (0, 2013-08-19)
sample\res\drawable-mdpi\ic_launcher.png (2574, 2013-08-19)
... ...

#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)

近期下载者

相关文件


收藏者