1,359 questions
0 votes
0 answers
66 views
How to make a Tooltip using TooltipDrawable in java?
Up to now, there is no straightforward and official way for creating a Material Tooltip in java. I know that one can create a TooltipDrawable using: TooltipDrawable tooltipDrawable = TooltipDrawable....
0 votes
1 answer
45 views
mimic setStatusBarColor when using compose navigation drawer
I'm using compose compose drawer. since, setStatusBarColor is deprecated on android 15. so, i cant use setStatusBarColor. somehow, google files app achived using some other way. This is the code i ...
0 votes
0 answers
31 views
Stop MaterialSwitch's Handle from getting smaller when disabled
I'm using the MaterialSwitch in my Android app as follows <com.google.android.material.materialswitch.MaterialSwitch android:layout_width="wrap_content" android:layout_height=&...
0 votes
0 answers
54 views
Compose Ripple adding transparency in app but not previews
When trying to implement the new compose ripple configuration, I am running into this issue where my ripple on a preview shows up perfectly, but the ripple on the emulator in a built app is showing ...
1 vote
1 answer
66 views
Android MaterialButtonToggleGroup buttons are getting offset when they have more than one line of text
I am using a MaterialButtonToggleGroup with MaterialButton buttons in it. I am trying to fit 2 lines of text into some of the buttons, but the buttons get shifted down a bit if they have more than one ...
0 votes
0 answers
58 views
How to make the Material3 OptionsMenu appear below the ActionBar?
I am implementing a Material3 Android App. The official guidelines state that an options menu should appear below the action bar: The implementation guide provides the following screenshot: However, ...
1 vote
0 answers
25 views
How to Change TabLayout Color In Android xml
I'm looking forward to change the color of this part of TabLayout When user swipes but there's not more items to swipe to. color This is My xml: <com.google.android.material.tabs.TabLayout ...
0 votes
1 answer
145 views
How can I implement a FAB cradle (cutout) with a BottomAppBar in Material 3 using Jetpack Compose?
I'm trying to recreate the Material Design pattern where a Floating Action Button (FAB) is partially embedded (or “cradled”) by a BottomAppBar. In Material Design 2, I used the cutoutShape property on ...
1 vote
0 answers
43 views
Jetpack Compose add custom themed colors to library
I develop library with composables. Composables have different foregone colors set for light and dark theme. For example backgroundColor, buttonColor, progressLineColor. I don't want library users to ...
0 votes
1 answer
64 views
Trouble removing pink hue from TextInputLayout after migrating to Material 3
I'm migrating my app theme from MaterialComponents to Material3. While I managed to restore most of my app's original colors, I'm struggling with my TextInputLayouts, which now have a subtle (but ...
0 votes
0 answers
38 views
How to level two TextInputLayout next to each other when one has END_ICON_CLEAR_TEXT and the other END_ICON_NONE?
Consider that: Al2TextView inherits from TextView Al2TextInputLayout inherits from TextInputLayout Al2TextInputEditText inherits from TextInputEditText When entering text into the second field (...
0 votes
1 answer
81 views
How to interrupt and restart a Compose AnimatedVisibility animation
Given an animation showing an Int value where the composable starts small and gets bigger (using scaleIn) how can the animation be immediately interrupted and restarted? In the following example we ...
1 vote
1 answer
2k views
Jetpack Compose TopAppBar with search bar embedded
I'm trying to implement something that I feel should be easy but I'm having a hard time. I have a screen with a scaffold, topbar, and lazycolumn as content: I'm using a M3 TopAppBar with a ...
1 vote
1 answer
168 views
Android Compose Material 3, How to implement like mini player shared transition
In material 3 transition guideline, there is this example of implementing such a shared transition : https://m3.material.io/styles/motion/transitions/applying-transitions#b74c80e4-10f1-4f46-a140-...
1 vote
1 answer
79 views
Custom AppBar and Toolbar styles not applying in MaterialComponents Theme
I am trying to create a global custom style for the AppBar and Toolbar in my Android application using MaterialComponents. I want the styles to apply globally across all activities. However, the ...