Most voted "actionbar" questions
43 questions
Sort by count of
-
8
votes1
answer3540
viewsChange Actionbar menu icon
I want to change the menu icon for ActionBar, those 3 points that have as default option "Settings". I’ve tried for the Style creating a custom theme and there putting the new icon but it did not…
-
8
votes1
answer374
viewsHow to assign an Activity to open by clicking on the Actionbar Tab?
Context I have an application that contains a Activity calling for MapActivity (of which is a Map activity you inherit from the Googlemaps api), and another Activity which will serve as a search…
android android-fragment actionbar android-adapterasked 9 years, 5 months ago Paulo Roberto Rosa 8,979 -
6
votes3
answers189
viewsHandling items from an Action Bar outside the onCreateOptionsMenu()
I have an item in my Action Bar to display progress (a Progressbar) if a request is occurring. When the request occurs, I must show Progressbar and hide the other items, when the request ends, I…
-
4
votes1
answer9504
viewsCreating tabs the right way on Android currently
I’m trying to implement in the app I’m creating Tabs, like this: But always when I try to implement I face classes and methods deprecated, as an example, TabListener, ActionBarActivity and now I’m…
-
3
votes1
answer1313
viewsCreating custom Toolbar, action bar
Guys I’m creating a separate Toolbar to facilitate the development I’m looking to make a very simple Toolbar but I can’t how I want to do: http://prntscr.com/cuipex my code: <?xml version="1.0"…
-
2
votes1
answer151
viewsDropdown-free Action Bar menu icon
I’m trying to remove the dropdown menu from the Actionbutton Overflow from the Action Bar. In this case it would be the one that has the 3 points, one on top of the other, as default and as default…
-
2
votes1
answer457
viewsHow to make a menu item visible on Toolbar by clicking an existing one?
I have a menu on my Toolbar, it has the following actions: R.id.action_editar R.id.action_salvar How can I make so that when I click the edit action, the save action button becomes visible? This…
-
2
votes0
answers131
viewsHow to change the color of the action bar in android studio
I am a student and developer beginner and I have a project that I have to do that basically consists of changing the color of the Action bar (Top Menu) by selecting one of the 3 radiobutton (single…
-
1
votes1
answer434
viewsAndroid Toolbar hide Search when it is open
I have a Toolbar (actiobar) that contains a search and when I change from Fragment, I want this search to disappear. If the search has closed, just do a setVisible(false) that it hides, however, if…
-
1
votes1
answer216
viewsHelp to migrate from Actionbar.Tabs to Viewpager because of API 21
From what I understand, the hosting of tabs in actionbar has become obsolete in API 21. I still don’t understand why (if someone explains it better I appreciate it) but what I can do is adapt. I did…
-
1
votes2
answers2275
viewsChange Action Bar title with Tab Bar
I have 3 Tab Bars that are at the bottom of the layout and the action bar at the top, as default. I need to know how to modify the title of my Action Bar every time a different Tab Bar is selected.…
-
1
votes1
answer46
viewsFragmentactivity with Actionbardrawertoggle
I would like to create a Drawer with a Actionbardrawertoggle. I’m following this tutorial! My only change is that I’m extending a FragmentActivity and not a Activity as the example. When I run…
-
1
votes1
answer29
viewsHow to edit Theme.xml in Titanium?
I need to remove actionBar from my project and the best way I could find was to edit Theme.xml. However, when I edit it, I cannot save it and soon, my actionBar remains active. I tried to put the…
-
1
votes3
answers783
viewsActionbar in Android Studio 1.4
I upgraded my Android Studio to version 1.4 and am having problems implementing Actionbar in one activity. The application performs validation of a user’s data through the MainActivity and then…
-
1
votes2
answers492
viewsforce user to fill in edittext
I have some Edittext and I need them all filled in, in case the user does not fill in and try to press the button to continue the text boxes should show an error. put that button in the action bar…
-
1
votes1
answer201
viewsToolbar with two different colors
How to make a Toolbar with two colors in half, going from one color to the other?…
-
1
votes1
answer365
viewsUse of Actionbar Up Navigation Android - API23
I’m implementing an app that has a activity to load a map and another activity to list the places the user has selected on the map. How I’m working with API23, Toolbar was successfully aired on…
-
1
votes1
answer54
viewsError when 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…
-
1
votes1
answer598
viewsOpening an Activity and returning saving the main state
After many researches I came across the following situation: I’m on my own Main Activity and would like to open another Activity(passing parameters to Activity2[In case a meditate]), after this use…
-
1
votes1
answer101
viewsHow to show icon images in Android Action Bar?
I created a simple application, it is something very trivial. What is happening is that I am trying to create a menu with icons on Action Bar, but what is actually happening is that my application…
-
0
votes1
answer301
viewsChange the background color of Actionbar with Tabactivity
I’m having trouble changing the background. When I wear it like that, with the extends of TabActivity: public class HomeTabActivity extends TabActivity {... private android.support.v7.app.ActionBar…
-
0
votes0
answers66
viewsSlide Menu using Sherlock without Actionbardrawertoggle which is obsolete
I have seen many examples to implement the slide menu using the famous Sherlockactionbar, but they all use the obsolete Actionbardrawertoggle. Someone has an example of implementing a slide menu…
-
0
votes2
answers10894
viewsChanging Actionbar Color in Style
I’m studying to develop Android applications, I’m making an App, but I can’t change the color of my Actionbar. I’m developing for Android Kitkat. This is my style.xml <resources> <!-- Base…
-
0
votes1
answer417
viewsHow to use Listactivity with Actionbar?
You can only access a menu ListView who is without the ActionBar by the menu key in the emulator. How to display it? It is necessary to inflate by BaseAdapter? Activity of ListView: public class…
-
0
votes1
answer628
viewsAndroid Transition between Fragments
I have an application that contains 2 Ragments. An Fragment (A) is an item listing and Toolbar has a search, and the second (B) is the date of the selected item. I can make the transition well from…
-
0
votes1
answer794
viewsIn the Actionbar Menu, how to allow the icon of an item to be always visible, and the text only when there is space?
I’ve been trying and researching for some time the possibility of having a behavior in my Menu of ActionBar, as follows for some items: Icon (android:icon): always visible in the ActionBar; Text…
-
0
votes1
answer438
viewsHow to change the color of Actionbar in the eclipse?
I’m studying how to change the color of mine ActionBar, but I can’t. I’ve tried everything but without success. This is my MainActivity.java: import android.support.v7.app.AppCompatActivity; import…
-
0
votes1
answer82
viewsCreate themes in the Android app
Guys, it is possible to customize the color of the action bar on Android, because I’m developing an application and I wanted users to be able to choose the color of the application they like best.…
-
0
votes1
answer46
viewsActionbar dynamic text size
How do I place the text in the dynamically sized actionbar? I need to set in different text sizes and have to frame dynamically. public void setarTituloActionBar(String nome){ setTitle(nome); } The…
-
0
votes1
answer135
viewsHow do I make the app icon appear in the action bar?
by default it was to appear but it is not appearing I found this question Application icon does not appear but the answer did not answer me.…
-
0
votes1
answer379
viewsAnimate the Actionbar button
Good afternoon, I have an app that has a refresh button on Actionbar : <menu xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes0
answers69
viewsCustom actionbar does not take up the entire screen width
Well, I was trying to customize my Actionbar, it worked, but it turns out that it doesn’t fill the entire width of the screen, it’s as if it was superimposed on the old one, to better understand…
-
0
votes1
answer297
viewsToolbar toggle(burger) button does not work on Android Pre Lollipop
I created a NavigationDrawer same as the image It works perfectly on Android 5.0 or higher, equal to image. But when I run the application on Android less than 5.0, the button does not work and when…
-
0
votes3
answers3605
viewsProblems with getSupportActionBar() to Home (arrow) button and back arrow
I’m having trouble giving the action to the home button, I’m managing to implement without problems the button according to the code getSupportActionBar().setDisplayHomeAsUpEnabled(true);…
-
0
votes1
answer210
viewsHow to put a layout for each tab bar action
The code shows an application with 2 tabs: List and register, I want to put a listview in one and a form in the other, but how do I make each one have its own xml? package…
-
0
votes0
answers267
viewsHow to set Actionbar height?
I want to put the height of Actionbar as 80dp but the way I did it’s not working: <style name="LargeActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme…
-
0
votes1
answer199
viewsSearchview without any return on Android
I implemented a Searchview and put in a Toast to see if it was working as soon as I typed something in the search. Toast is not displayed, no error appears in Logcat. The search is in an Actionbar.…
-
0
votes0
answers140
viewsIs it possible to create an Options Menu without an Action Bar on Android?
I am creating a Profile screen, and would like to put a Options Menu with the options 'Edit Profile' and 'Quit'. The problem is that I don’t have an Action Bar on this screen, and I don’t want to…
-
0
votes1
answer191
viewsToolbar is not displayed in the editor
Whatever project I design: The Toolbar is displayed in the emulator but does not appear in the editor. These errors also appear: It follows the codes: Styles: <resources> <!-- Base…
-
-1
votes1
answer791
viewsHow to check if the field is filled in
I have some Edittext that must be filled. The button that checks if it is filled is an imagebutton in actionbar. I tried to do it in a way but it didn’t work. the mistake is…
-
-1
votes1
answer62
viewsActionbar disarranged after updating Android Studio
After update no more Actionbar appears in new projects. Androidmanifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"…
-
-1
votes1
answer37
viewsChanging the title color of an open Activity
I’m trying to change the color of the text of my Action Bar, but I’m not getting... I have researched here and elsewhere and the answer is always very similar to that answer: Changing the title…
-
-2
votes1
answer137
viewsWould you like to know how to change the color of selected items, Actionbar?
<!-- styles.xml --> <resources> <!-- Base do tema da aplicação. --> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here.…