Questions tagged as 'actionbar'

4
answers

Disable the functions of the three buttons (Back, Home, change app) android [closed]

I am looking for some way to disable the functions of the navigation bar buttons so that my app can not be closed. Thank you very much.     
asked by 27.01.2017 / 21:46
2
answers

Add icons to the Actionbar

I am looking for the following: put the icon and next to the title, as shown in the image where the Google Photos icon is and next to it says Photos . I have the following code: <?xml version="1.0" encoding="utf-8"?> <menu...
asked by 25.12.2016 / 18:21
1
answer

ActionBar with arrow in a MapsActivity

How can I put an ActionBar with a backspace arrow in a MapsActivity that extends from FragmentActivity.     
asked by 07.04.2017 / 16:55
2
answers

Is it possible to center the ActionBar text?

I wanted to know if it is possible to center the ActionBar text, by default it comes to the left. By default: Centered (This is how I would like to put it): Is it possible? Thanks! Edit 2: MainActivity.java package p...
asked by 18.12.2016 / 01:18
2
answers

If there is space in the action bar because it does not show the icons that have showAsAction="ifRoom"?

hello I have a menu in the action bar that is as follows: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:appcompat="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/menu_search"...
asked by 06.04.2017 / 20:07
1
answer

Add in ActionBar

I would like to know how to add an icon in the ActionBar of my application I have the following XML code <menu xmlns:android="http://schemas.android.com/apk/res/android" > <!-- "Mark Favorite", should appear as action button if poss...
asked by 19.11.2016 / 12:02
0
answers

Why do not you show me the more item icon in the action bar if there is space?

Hello good afternoon I have a problem happens that the icon is not shown anymore (the default of android) in the action bar, if not send it to the drop-down menu there (those three dots). Here is my code: XML <?xml version="1.0" encoding="u...
asked by 08.11.2018 / 19:57
0
answers

Show backspace icon in actionbar using Fragment

I am using the main activity to call my fragment but I need the icon to be implemented in actionbar of backspace. call fragment: getSupportFragmentManager() .beginTransaction() .replace(R.id.fra...
asked by 31.08.2018 / 01:21
0
answers

Passing Spinner text to a SearchView

I have a problem that I have not been able to find a solution for, I have a spinner that by clicking on the drop-down list I want that text to go to the SearchView I have programmed, I just need the text from the spinner when clicked,...
asked by 27.04.2018 / 19:25
0
answers

Inquiry - Action Bar with SearchView and Sppiner

Is there any control that allows me to do a search from the ActionBar but previously selecting an item from a Spinner? I need the search shown in the image to be done from the ActionBar for reasons of space and consistency with the others Fragme...
asked by 19.04.2018 / 14:41