Skip to main content

All Questions

Tagged with
1 vote
1 answer
873 views

Change Menu Items Order programmatically Android Java

Basically I have an android popup menu, when any menu item is clicked, it should reshuffle the order of the menu items <menu xmlns:android="http://schemas.android.com/apk/res/android"> ...
techdan's user avatar
  • 37
0 votes
1 answer
596 views

How do I create a dropdown checkbox list in Android?

I want to create a material design exposed dropdown menu for my Android app using Kotlin, but I want the dropdown menu to be a list of checkboxes where I can then retrieve what checkboxes the user ...
Tom Darious's user avatar
2 votes
2 answers
2k views

How to get height and width of a popup menu in android?

I have a popup menu and I just want to get dimensions of it to use in my showCaseView for my guided tour. I could not find anywhere the way to determine these dimensions (height and width). private ...
ALEXANDRE CHAGAS VIEIRA JUNIOR's user avatar
2 votes
3 answers
3k views

how to change margin between items in popupmenu

I want to change the space between items in my popupmenu on android the space i mean is this one: I hope there is a straight foward solution, but as i know android it shall not be so simple anyway ...
Rafael Lima's user avatar
  • 3,494
0 votes
2 answers
100 views

showPopupMenu method not working when clickng on ImageView

I have a popup menu inside every item on a listview. When you click the imageview to the left (settings img with 3 dots) a popup menu should showup. however, I'm getting error Could not find a method ...
miatech's user avatar
  • 2,268
1 vote
1 answer
648 views

onOptionsItemSelected is not called in PopupMenu

I am trying to open popup menu when pressing one of the elements of the Dialog Fragment, but onOptionsItemSelected method is never called, even when pressing one of the menu items. What should I do to ...
Gleb Glazyrin's user avatar
0 votes
1 answer
1k views

Custom Style for Popup Menu

I am stuck with the problem on how to make a custom style for Popup Menu. All I got is this kind of Popup Menu: This is running on an Marshmallow emulator. I don't have a custom style for this ...
Chris Palma's user avatar
2 votes
3 answers
3k views

Change Popup Menu Items font size dynamatically Android

I am creating an android app which has a popup menu and it is opened when a button is clicked and I want to increase the text size of menu items in that popup menu dynamically(based on the users input)...
Saran's user avatar
  • 963
8 votes
5 answers
2k views

Popup Menu issue in Android ListView

I am new to Android and I am creating Listview Popup Menu. But I am having it's width and height problem. The Popup Menu can take more height and width. There are many questions in SO, but none of ...
Harshad's user avatar
  • 1,344
7 votes
3 answers
7k views

anchor popup menu over overflow button

I'm trying to create a custom popup menu that I would like to position on the overflow menu button of the actionbar (am using a Toolbar with setSupportActionBar() for this if it matters). I found out ...
source.rar's user avatar
  • 8,080
145 votes
4 answers
236k views

Android custom dropdown/popup menu

How do I do a custom dropdown/popup menu anchored to a button? I need it to work like the popup menu (anchored to a view), and do something when I click an item from the menu. How do I add items to ...
stanete's user avatar
  • 4,102
1 vote
1 answer
757 views

How do I get an item id from an action bar popup menu?

I am having trouble accessing an item within a popup menu once I press a MenuItem from the action bar. In other words, I do not know how to get the id of the items from the popup menu once I press on ...
John123's user avatar
  • 11
1 vote
2 answers
806 views

PopupMenu button not working

I have button in activity. When i click a button it displays a PopupMenu. Inside PopupMenu button click i need to show gallery in bottom page. But im getting error " The constructor MainActivity....
user2474320's user avatar
3 votes
1 answer
3k views

How to add new items to popup menu after click

I have a button: <Button android:id="@+id/bot_button1" android:layout_width="120dp" android:layout_height="fill_parent" android:layout_weight="1" android:...
wervdon's user avatar
  • 557
1 vote
2 answers
16k views

How to create a custom PopUp Menu

I would like to create a custom PopUp menu in Android like the one in the attached screenshot. Any pointers would be appreciated. On click of the button "Choose Name" , you see a PopUp menu just ...
Sana's user avatar
  • 9,915