Questions tagged [action-menu]
28 questions
1
vote
2 answers
How to get Action Mode working with a ListView
I'm trying to get a contextual menu using the Action Mode where I can select an item in a ListView by long-clicking on it. I created a MultiChoiceListener according to this reference and made a ItemLongClickListener wich sets an item as checked…

NiPfi
- 1,710
- 3
- 18
- 28
1
vote
2 answers
Android - How to start select mode
In my Android app I need to provide some custom actions on the contextual action menu after the user selects some text. To do so, I capture long clicks and start the action mode, providing a custom ActionMode.Callback (as pointed out in Android…

davids
- 6,259
- 3
- 29
- 50
0
votes
1 answer
ActionMode with same theme as Toolbar in Android
In Android, is there any way to give an ActionMode the same appearance as the normal Toolbar? Currently my ActionMode looks different to the Toolbar in that the background is slightly brighter (at least using Theme.AppCompat.NoActionBar), the…

linux_user36
- 113
- 1
- 8
0
votes
2 answers
TextView: How to prevent displaying the action menu when selecting text in TextView?
I have a selectable TextView.
I want to prevent showing the context menu when selecting text.
I implemented this code but action bar and context menu still is displayed.
tv.setCustomSelectionActionModeCallback(new ActionMode.Callback() {
…

Arman Hosseini
- 41
- 6
0
votes
2 answers
How to find parameters of an Action Menu created at runtime
My program creates Action Menu items at runtime, with the caption of each item set to a value returned by a database query.
The OnExecute procedure is the same for all items.
When I click on an item, I want to obtain the item caption to use in the…

Errol Anderson
- 15
- 4
0
votes
2 answers
Dotnetnuke Actions button missing from site
I am using DNN 5.1 on a project and something's happened that I cannot quite figure out. The control button which controls the actions of any html module has gone missing. If I check the event viewer of DNN, this is what I get:
Message:…

Sixfoot Studio
- 2,951
- 7
- 26
- 35
0
votes
1 answer
Android: actions showing on the right edge when setting action view instead of icon
I am adding action menu items to the action bar dynamically and because I want a "badge" effect, I am setting views to the items instead of just drawable icons. My problem is that when I have items which have their views set, they are also aligned…

hildegard
- 559
- 8
- 24
0
votes
2 answers
How to display different Google Map view?
I am using ActionBar Menu to give option for google map display. I want to display different maps. In my code I am not able to switch for different map. Help me to solve the code mistake.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
…

Bharat
- 17
- 1
- 6
0
votes
1 answer
How to invisible option menu list in action bar?
I am beginner in Android, I created three menu lists in the action menu. I am not logined-in in the app, but the logout menu is shown. If logged-in the logout menu is visible and the login invisible. If I press logout, the login menu is visible, and…

Krishnan
- 428
- 1
- 4
- 11
0
votes
1 answer
I want to logcat all action menu item
this is my code
Image_List.java
package com.prgguru.example;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import…

fikri
- 17
- 1
- 6
-1
votes
1 answer
ActionBar menu refresh
I have a simple requirement where I have 2 menu items in action bar menu. The first is used to login using google account and the second is to log out. I want to hide one option based on the status of the user. i.e. if the user is logged in I want…

Abdullah Muhammad
- 3
- 1
- 3
-1
votes
1 answer
how to create Custom action menu with animation
I want to create custom action menu with animation in android like given Image below Please guide me for best solution Thanks In advance.

Hanzala
- 1,965
- 1
- 16
- 43
-1
votes
3 answers
Floating Action Menu like Google Hangout in android
I am trying to make a FLoating Action Menu similar to Google Hangout. I have tried
https://github.com/Clans/FloatingActionButton
But still I am not able to achieve that. I want the Floating action menu as described in the image.
When I will click…

Aman Gupta
- 11
- 1
- 3