I want to create button with drop down menu, like overflow menu button in ActionBar on ICS. I have problem because PopupMenu there isn\'t in android 2.x. The second way usin
An alternative to your requirement could be ,that you create a list view,, position it under your button & set it's visibility to invisible by default & when you click on the button you can toggle the listview's visibility .... for example
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
if (LISTVIEW.isShown()) {
LISTVIEW.setVisibility(View.INVISIBLE);
} else {
LISTVIEW.setVisibility(View.VISIBLE);
}
let me know if this helps...