1,360 questions
Score of 1
1 answer
108 views
How to Separate Buttons in MaterialButtonToggleGroup
The best I can do:
<com.google.android.material.button.MaterialButtonToggleGroup
android:id="@+id/file_type_toggleGroup"
android:layout_width="wrap_content"
android:...
Score of 0
1 answer
101 views
Android Side Sheet Dialog Dismiss on Content View Click
Side Sheet Dialog Layout:
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/...
Score of 0
2 answers
161 views
Android Material3 Outlined Button Looks Different from Guideline
XML:
<Button
android:id="@+id/send_button"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="wrap_content"
android:...
Score of 0
0 answers
87 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....
Score of -1
1 answer
65 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 ...
Score of 1
1 answer
113 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 ...
Score of 0
0 answers
74 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, ...
Score of 1
0 answers
31 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
...
Score of 0
1 answer
255 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 ...
Score of 1
0 answers
61 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 ...
Score of 0
1 answer
83 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 ...
Score of 0
1 answer
105 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 ...
Score of 1
1 answer
2246 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 ...
Score of 1
1 answer
224 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-...
Score of 1
1 answer
106 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 ...