Back to project page eyebrows-sync.
The source code is released under:
Copyright (c) 2014 Jon Petraglia of Qweex All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
If you think the Android project eyebrows-sync listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qweex.eyebrowssync.JobList; /*from www . java 2s . c om*/ import android.view.*; import android.widget.*; import com.qweex.eyebrowssync.R; import java.util.ArrayList; public class v11 extends Base implements PopupMenu.OnMenuItemClickListener { // Overridden Methods void showItemMenu(View v, String name, ArrayList<SimpleMenuItem> menuItems) { PopupMenu popupMenu = new PopupMenu(v11.this, v); popupMenu.getMenu().clear(); for(int i=0; i<menuItems.size(); i++) popupMenu.getMenu().add( 0, menuItems.get(i).getItemId(), 0, menuItems.get(i).getTitle() ); popupMenu.getMenu().findItem(R.id.status).setVisible(syncers.get(name)!=null); popupMenu.setOnMenuItemClickListener(v11.this); popupMenu.show(); } // Specific Methods @Override public boolean onMenuItemClick(MenuItem item) { handleMenuItemClick(item.getItemId()); return false; } }