Giter VIP home page Giter VIP logo

arcmenu's Introduction

#ArcMenu

An android custom view which looks like the menu in Path 2.0 (for iOS).

Preview Preview

##About

The user experience in Path 2.0 (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

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]);
     menu.addItem(item, null);// Add a menu item
}

If you want to change the default appearence:

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

##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+: +魔įž¯

arcmenu's People

Contributors

dacapricorn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.