I want to realize a custom popup menu like Twitter in Android for example with item and picture but I don\'t know what\'s the component used for that.
In Material
try {
java.lang.reflect.Field[] fields = popup.getClass().getDeclaredFields();
for (java.lang.reflect.Field field : fields) {
if ("mPopup".equals(field.getName())) {
field.setAccessible(true);
Object menuPopupHelper = field.get(popup);
Class<?> classPopupHelper = Class
.forName(menuPopupHelper.getClass().getName());
Method setForceIcons = classPopupHelper
.getMethod("setForceShowIcon", boolean.class);
setForceIcons.invoke(menuPopupHelper, true);
break;
}
}
} catch (Exception e) {
e.printStackTrace();
}