MrFu-ArcMenu

时间:2017-09-23 11:22:03
【文件属性】:

文件名称:MrFu-ArcMenu

文件大小:2.4MB

文件格式:ZIP

更新时间:2017-09-23 11:22:03

ArcMenu Composer

自己重写了效果,添加了文字说明,阴影控制等 An android custom view which looks like the menu in Path 2.0 (for iOS). 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: 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 arcLayout.setChildSize(50); arcLayout.setArc(0.0f, 300.0f);


【文件预览】:
MrFu-ArcMenu
----.project(815B)
----project.properties(563B)
----src()
--------com()
----AndroidManifest.xml(848B)
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------values-v11()
--------menu()
--------drawable()
--------drawable-mdpi()
--------layout()
--------anim()
--------values-sw600dp()
--------drawable-xxhdpi()
--------drawable-xhdpi()
--------values()
--------values-sw720dp-land()
--------values-v14()
----.settings()
--------org.eclipse.jdt.core.prefs(173B)
--------org.eclipse.core.resources.prefs(55B)
----assets()
----gen()
--------com()
----libs()
--------android-support-v4.jar(607KB)
----.classpath(466B)
----proguard-project.txt(781B)
----ic_launcher-web.png(50KB)
----bin()
--------resources.ap_(158KB)
--------classes()
--------AndroidManifest.xml(848B)
--------dexedLibs()
--------jarlist.cache(120B)
--------res()
--------MrFu-ArcMenu.apk(398KB)
--------classes.dex(696KB)
--------Demo.apk(284KB)

网友评论

  • 对我来说有很大的帮助
  • 很有借鉴性,指的参考
  • 很好,很强大,正主说:复用性不太好,如果弹3个的话,代码改动很大,没试呢,感谢可爱的小园子