Questions tagged as 'actionbar'

1
answer

SearchView with no return on Android

I implemented a SearchView and put a Toast to see if it was working as soon as I typed something in the search. But Toast is not displayed, no error appears in Logcat. The quest is in an ActionBar. When I click on the search icon, it expands to...
asked by 30.05.2017 / 23:02
0
answers

How to set height of ActionBar?

I want to set the height of ActionBar to 80dp but the way I did it is not working: <style name="LargeActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="c...
asked by 13.05.2017 / 20:04
1
answer

ActionBar dynamic text size

How to put the text in the actionbar with dynamic size? I need to set in different sizes of text and have to frame dynamically. public void setarTituloActionBar(String nome){ setTitle(nome); } The set is 100%.     
asked by 23.01.2017 / 13:01
0
answers

Custom ActionBar does not occupy the full screen width

Well, I was trying to customize my ActionBar, it worked, but it happens that it does not fill the entire width of the screen, it is as if it were superimposed on the old one, to better understand the image below: ThisismycustomActionBar.xmlc...
asked by 08.01.2016 / 20:18
1
answer

Animate ActionBar Button

Good afternoon, I have an application that has a refresh button in ActionBar: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:com.my.app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id...
asked by 14.09.2015 / 20:24
0
answers

Slide Menu using Sherlock without ActionBarDrawerToggle that is obsolete

I have seen many examples to implement the slide menu using the famous SherlockActionBar, but all use the ActionBarDrawerToggle that is obsolete. Does anyone have an example of implementing a slide menu using Sherlock without ActionBarDrawerTogg...
asked by 26.11.2014 / 05:07
1
answer

How to check if the field is filled [closed]

I have some EditText that should be filled out. The button that checks if it is filled is an imagebutton in the actionbar. I tried to do it one way but it did not work. error is cnpj.setError(resources.getString(R.string.login_cnpj_require...
asked by 25.07.2016 / 23:44
1
answer

I would like to know how do I change the color of the selected items, ActionBar?

<!--styles.xml--><resources><!--Basedotemadaaplicação.--><stylename="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/...
asked by 21.12.2017 / 23:04