Questions tagged as 'actionbar'

1
answer

How do I assign an Activity to open when I click on the ActionBar Tab?

Context I have an application that contains a Activity called MapActivity (of which is a Map type activity that inherits from GoogleMaps api), and another Activity common that will serve as a search with filters to refine...
asked by 20.07.2015 / 16:16
1
answer

Change ActionBar menu icon

I want to change the menu icon of ActionBar , those 3 points that have the default option "Settings". I've already tried Style by creating a custom theme and there putting the new icon but it did not work. <style name="CustomActivit...
asked by 07.05.2015 / 19:13
3
answers

Handle items from an Action Bar outside the scope of onCreateOptionsMenu ()

I have in my Action Bar an item to display progress (a ProgressBar) if a request is occurring. When the request occurs, I must show the ProgressBar and hide the other items, when the request ends, I must hide the ProgressBar and show the other i...
asked by 17.09.2015 / 21:07
1
answer

Creating Tabs Correctly on Android Currently

I'm trying to implement in the application that I'm creating Tabs, like this: But when I try to implement, I'm always faced with deprecated classes and methods, such as TabListener , ActionBarActivity and now I'm not...
asked by 03.09.2015 / 01:43
1
answer

Creating custom toolbar, action bar

I'm creating a separate toolbar to facilitate development I'm trying to make a simple toolbar but I can not do it. How I want to do: link My code: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns...
asked by 15.10.2016 / 22:06
1
answer

Opening an activity and returning it saving the status of main

After many searches I came across the following situation: I'm on my Main Activity and would like to open another Activity (passing parameters to Activity2 ), then use the button back on the toolbar and return to the main. Problems:Iamu...
asked by 21.01.2017 / 13:05
1
answer

How to make a menu item visible on the toolbar by clicking on an existing one?

I have a menu in my toolbar, it has the following actions: R.id.action_editar R.id.action_salvar How can I make it so that when I click on the edit action, the save action button becomes visible? Would this be done in...
asked by 01.02.2016 / 17:51
1
answer

Action Bar menu icon without dropdown

I'm trying to remove the Action Bar's Overflow drop-down menu from Action Bar. In case it would be the one that has the 3 points, one on top of the other, by default and as default option, "Settings". I would like to remove this "Settings" item,...
asked by 28.05.2015 / 16:17
1
answer

Toolbar with two different colors

How to make a toolbar with two colors in half, going from one color to the other?     
asked by 28.01.2018 / 06:12
1
answer

Error trying to set custom ActionBar: java.lang.NullPointerException

I'm trying to customize my ActionBar but whenever I try to emulate the application it closes and returns me the following error in LogCat: 01-07 16:21:57.092 1388-1388/br.com.jeiferson.agenda E/AndroidRuntime: FATAL EXCEPTION: main 01-07 16:21...
asked by 07.01.2016 / 17:31