I am trying to implement the action bar functionality of the flipkart app..
For this I have successfully created a custom Action Bar but I am facing problems in showing the menu as drop down on overflow icon click.
If I try Android Option Menu on button click then on I am getting the menu without icons (4.2.2) at the bottom center of my screen. Using a custom dialog or alert dialog fades the background and they also appear on the center of the screen.
What should I do to get the functionality similar as shown in the image above?
Window.FEATURE_ACTION_BAR
is not true in my case, as I have a customActionBar
. UsingActionBar.DISPLAY_SHOW_CUSTOM
also isn't working. Any work around for that? – KatharinekatharsisHaresh
is working for me but I am having troubles in automating the offset. Can you help in that? – KatharinekatharsisgetLocationInWindow()
then I am getting the popup on top of button, but as shown in image, I want my popup to be just under actionbar and have some margin from right. Hardcoding works but I want to do it programmatically. – KatharinekatharsisshowAsDropDown(view)
is also showing the popup under the button but it is getting slightly over actionbar, hence again I need to set offset. I just want to know if there is a way to calculate the offset values programmatically? – Katharinekatharsis