Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PopupMenu in Android 2.1 API 7

Tags:

android

I am developing Android 2.1 API 7 app. I am also using ActionbarSherlock library to implement Action Bar.

Now, I need to implement PopupMenu which is only support by API 11+.

How can I implement PopupMenu in Android 2.1 API 7 ?

like image 730
Leem.fin Avatar asked Feb 14 '12 10:02

Leem.fin


3 Answers

use the Android Support V7 Library;
android.support.v7.widget.PopupMenu

like image 138
Ligboy Avatar answered Nov 13 '22 16:11

Ligboy


I'v stucked with such a problem, and the only solution i'v found for myself was to use a list dialog in android sdk<11 and ListPopup in android 11 and higher.

like image 27
Alex Avatar answered Nov 13 '22 17:11

Alex


you can use HoloEveryWhere, it bringing Holo theme from android 4.1 to 2.1 and above.

like image 1
taha Avatar answered Nov 13 '22 16:11

taha