android-toolbar Questions
4
Solved
In my app I am using a toolbar and it seems there are borders around it that I'd like to get rid of :
and I created it like that :
<android.support.design.widget.AppBarLayout
android:layo...
Descendible asked 17/11, 2016 at 0:2
3
Solved
Im currently creating an app, which has a MaterialToolbar widget. I want to set the icons color to white.
I tried following the accepted answer in this question, however, it doesnt work. Adding col...
Luiseluiza asked 30/6, 2020 at 15:31
39
The SearchView element doesn't have any properties for changing the text color. The default text color is black and doesn't work on our dark background. Is there a way to change the color of the te...
Carthage asked 4/7, 2012 at 0:51
11
Solved
In one of my Activities, I changed the Toolbar color using Palette. But on 5.0 devices using ActionBarActivity the status bar color is the color of my colorPrimaryDark in my activity theme so I hav...
Marotta asked 2/11, 2014 at 17:7
4
Solved
The new 'Material Design 3 top app bar' docs says they got rid of the drop shadow.
How can I enable it? Setting elevation on Toolbar or AppBar does not work at all.
Laguna asked 18/3, 2022 at 13:53
5
Solved
I have the following layout:
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://sche...
Sigmund asked 5/10, 2015 at 19:9
6
Solved
I'm trying to change my Toolbar's menu item text color here, but it doesn't work. Here's my style:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPri...
Berzelius asked 7/4, 2017 at 10:54
3
Solved
How to tint menu icons is already covered a few times, like here:
Toolbar icon tinting on Android
Additionally to this solution there is still the problem of the navigation icon.
Applying a Theme...
Corbel asked 28/8, 2017 at 14:7
3
Solved
I need to add a Toolbar in my Android application with a List like below. I am using Jetpack Compose to create the UI. Below is the composable function i am using for drawing the main view.
@Compos...
Luhey asked 3/3, 2021 at 17:51
27
Solved
Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tyczj.weddingalbum/com.x...
Undersea asked 22/10, 2014 at 18:59
3
Solved
I'm trying to use the Android Jetpack Settings guide with a toolbar. The guide says that the root tag to be <PreferencesScreen>, so I can not include the toolbar in the xml. I'm using a NoAct...
Mandamandaean asked 23/11, 2020 at 15:20
18
Solved
I want use ToolBar instead of ActionBar, but don't show me menu in toolbar!!! i want set menu such as Refresh or Setting buttons in ActionBar.
Toolbar.xml code :
<?xml version="1.0" e...
Marivaux asked 26/2, 2016 at 10:12
5
Solved
I'm in the process of implementing NavigationComponent coupled with a BottomNavigationView and I am noticing that the back arrow is shown in the toolbar for all fragment destinations except the one...
Gambit asked 19/6, 2019 at 14:33
5
Solved
I'd like to use Toolbar with Jetpack Compose. Does it have such a Composable component?
Odoacer asked 24/1, 2020 at 14:36
27
Solved
I'm migrating from ActionBar to Toolbar in my application.
But I don't know how to display and set click event on Back Arrow on Toolbar like I did on Actionbar.
With ActionBar, I call mActionb...
Behind asked 30/10, 2014 at 11:19
5
I have a ViewPager which Toolbar tabs.
I have to know how many times user clicked tabs and how many times user swiped and selected a page.
I am using ViewPager.OnPageChangeListener() for this pur...
Einberger asked 16/12, 2015 at 12:21
41
Solved
I'm trying to figure out the right way to use a custom font for the toolbar title, and center it in the toolbar (client requirement).
At the moment, i'm using the good old ActionBar, and I was set...
Catholicize asked 23/10, 2014 at 17:6
8
Solved
Background
I have a menu item in the action bar (toolbar actually) that when clicked, shows a list of items to choose from, similar to radio-buttons:
<menu xmlns:android="http://schemas.androi...
Foliose asked 22/10, 2015 at 8:59
2
So I have single activity app with single toolbar placed in layout of activity.
The next code only works just to change color of navigation icon button if there is no fragment was inflated yet
bind...
Mccue asked 15/8, 2022 at 14:2
17
Solved
I have an AppCompatActivity that controls replacing many fragments. Here is my layout for it.
activity_main.xml
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.androi...
Moderato asked 11/6, 2015 at 11:9
3
Solved
My app have a viewpager and 4 tabs, each tab have many fragment. But I just want my Toolbar scroll up/down while scrolling recyclerview in 2 specific tabs. But I don't know how to block Toolbar scr...
Seminarian asked 11/6, 2015 at 3:41
7
Solved
How to remove bottom line in android SearchView component? Like in this image:
Rustproof asked 21/6, 2018 at 15:57
13
Solved
I've implemented the newest appcompat library and using the Toolbar as action bar. But the problem is I cannot catch the home button / hamburger icon click event. I've tried and looked everything b...
Choriamb asked 27/10, 2014 at 6:17
6
Solved
I am trying to change hamburger menu icon for NavigationView but I am unable to do so.
Here is what I have tried so far
I have a base activity where nav drawer setup is done. Here is relevant pie...
Dipietro asked 2/11, 2015 at 14:10
3
Solved
I am migrating my app to Theme.Material3.* and found that the MaterialToolbar is now being highlighted in some accent color as soon as some content scrolls underneath it. See the animation that I'm...
Marquee asked 21/2, 2022 at 23:16
1 Next >
© 2022 - 2024 — McMap. All rights reserved.