2015-10-14 77 views

回答

0

讓我谷歌爲你:Android Circular Menu

可能是你正在尋找:ArcMenu

你一定要這樣寫:

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 
}