Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
29 views

Toolbar small to Medium by Text Lenght

I'm developing a toolbar that adheres to MD3 guidelines, but I'm unsure if this aligns with the intended use. The toolbar will dynamically change its title based on server-received data. This text ...
thproflord's user avatar
1 vote
1 answer
750 views

Why the background color of the top bar changes automatically not as I set it? Material Design 3

I'm trying to change the background color of the top bar and make it like the main background. I'm using Material You (MD3). The user can change from light mode to dark mode or vice versa. Here is ...
Taha Sami's user avatar
  • 1,649
3 votes
1 answer
980 views

Material toolbar menu background padding and color

I migrated by app to Material design 1.5.0. I use following code for toolbar (simplified): Inside Activity: <include layout="@layout/toolbar_default" /> toolbar_default: <?xml ...
Tom11's user avatar
  • 2,461
0 votes
1 answer
587 views

Andriod material toolbar isn't showing subtitle

I have a screen where I have to show screen's name in title and company's name in subtitle. But the problem is that subtitle isn't shown on virtual device, but it appears in xml editor. Screen from ...
Виталий Сорокин's user avatar
2 votes
3 answers
3k views

Material3 MaterialToolbar disable coloring at scroll

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 ...
BenjyTec's user avatar
  • 7,065
0 votes
0 answers
215 views

Toolbar does not hide while scrolling Recycler View

I want the toolbar to hide completely when I scroll the recycler view up and become visible when I scroll down. but the toolbar does not hide when I scroll the recycler view, the toolbar just remains ...
Sky's user avatar
  • 177
-1 votes
1 answer
314 views

How to add line below Material Toolbar in android?

By default material toolbar has elevation if used inside a coordinator layout, Is there any better way to add a 1dp line or stroke below toolbar instead of elevation to separate it from rest of the ...
Rahul Pawar's user avatar
2 votes
1 answer
3k views

How to change color Toolbar icons?

I am currently trying to change the colors of the icons in the toolbar via the theme (I know the way to do it via kotlin but I am interested to be able to do it on the whole app via a theme). Even ...
filol's user avatar
  • 1,681
0 votes
1 answer
242 views

android hamburger button color change using Material component theme

My hamburger button is not changing its color, I have changed color on primary to black color and colorprimary to white, then why hamburger is white? Everything was fine in Appcompat theme , I changed ...
noob_android's user avatar
1 vote
1 answer
356 views

Why the tint color is applied to other icons?

Consider this simple layout: <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/...
GVillani82's user avatar
  • 17.4k
3 votes
1 answer
2k views

liftOnScroll not working with NestedScrollView

When I set app:liftOnScroll="true" to my AppBarLayout, and then launch the app, I don't see any shadow, and scrolling down or up doesn't work. My Layout: <?xml version="1.0" ...
Bolt UIX's user avatar
  • 6,832
5 votes
1 answer
2k views

LiveData update of BadgeDrawable in ToolBar MenuItem

I want to show a badge on a toolbar action. The badge number is updated by a LiveData value. This is how I attach the badge: BadgeUtils.attachBadgeDrawable(inboxBadgeDrawable, toolbar, R.id.menu_inbox)...
Oderik's user avatar
  • 2,252
2 votes
4 answers
11k views

Error inflating class androidx.appcompat.widget.Toolbar android

I try to use the toolbar in my app and I get this message: "Error inflating class androidx.appcompat.widget.Toolbar". i glad if someone will find my problem (using the latest version of the ...
noa shen's user avatar
1 vote
1 answer
195 views

how to make an Angled cuts top app bar using material design?

I found this guideline in material design io site, could anyone share your idea, how to make this using material design, not 3rd party plugin. Trying to reproduce using cut shape & an overlapping ...
Bolt UIX's user avatar
  • 6,832
3 votes
1 answer
2k views

Access Toolbar (MaterialToolbar) from Fragment?

How can I access a Toolbar (actually a MaterialToolbar) from a Fragment using activity.actionBar? main_layout.xml (extract): <com.google.android.material.appbar.AppBarLayout android:...
me.at.coding's user avatar
  • 16.7k

15 30 50 per page