material-components-android Questions
2
Solved
I am using Material's BottomAppBar as my BottomNav in my Jetpack Compose's App. But when I tried to dock my fab on the BottomAppBar, it covers the nav items as the screenshot shows. Is there any wa...
Pickmeup asked 14/5, 2021 at 6:45
10
Solved
I know how to make Material Design button with color fill:
style="@style/Widget.AppCompat.Button.Colored"
And no-bordered transparent button:
style="@style/Widget.AppCompat.Button.Borderless.Co...
Hydra asked 23/5, 2016 at 16:6
2
After rounding the edges on my shapeable image view, I still get black edges around the rounded edges
Here is my xml :
<com.google.android.material.imageview.ShapeableImageView
android:id=&quo...
Slr asked 15/6, 2021 at 23:10
1
Is it possible to adjust the tonalElevation (but not the shadowElevation) of Material Design 3 components?
It looks as though it's only possible to adjust both. Below is the implementation of a Flo...
Querulous asked 6/4, 2022 at 18:38
3
Solved
I'm trying to style a seekbar/slider like the one labeled Discrete Slider - Click (that has the little tick mark indicators) in the Material Design Guidelines. I can't figure out the magical inca...
Towel asked 12/2, 2016 at 19:25
5
Solved
I have the following CardView and I want to set different radius for each corner in the card. Is it possible to change them by XML or programmaticaly? Thanks in advance.
<android.support.v7.wid...
Upstream asked 4/7, 2018 at 17:59
14
Solved
Is there a way to change default material Chip vertical padding or height? From the docs I see there surely is a way to set the minimal height, but I would like to make chips "thinner", like in thi...
Chopstick asked 7/8, 2018 at 10:0
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
4
Solved
What i'm trying to achieve is having a gridview with some materialButton inside.
I tried to create the gridview like :
<GridView
android:id="@+id/login_gridview_code_input"
android:l...
Pina asked 4/5, 2022 at 10:22
4
Solved
I have created a persistent bottom sheet in android with the intent of displaying a ListView containing additional information about locations. I want the sheet to have rounded corners. I got a ton...
Alyssa asked 20/6, 2019 at 8:51
5
Solved
How to add a constraint to MaterialDatePicker to force user to select a date between only 2 dates?
val constraintBuilder = CalendarConstraints.Builder()
val materialRangeBuilder = MaterialDatePic...
Martelle asked 19/6, 2020 at 11:29
2
I have an app with several skins. In one skin i define android:colorBackground and then I want to set this color in an XML layout as ViewGroup background color. How do I do it? Is it possible? Or i...
Hyaena asked 1/5, 2019 at 16:35
18
Solved
I want to have constant text inside editText like:
http://<here_user_can_write>
User should not be able to delete any chars from "http://", I searched about this and found this:
editText....
Distinctive asked 7/1, 2013 at 11:41
6
Solved
Although there is a similar question, it does not give me a solution. When I'm trying to use com.google.android.material.floatingactionbutton.FloatingActionButton it runs well. But if I try to use ...
Responsion asked 14/11, 2019 at 6:42
7
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="m3_ref_palette_dynamic_neutral0">@android:color/system_neutral1_1000</color>
...
Connell asked 3/9, 2021 at 11:54
1
Solved
After updating to Android Gradle plugin version 7.2.2 a warning is being given on the default Theme.kt file for Jetpack Compose projects:
ViewCompat.getWindowInsetsController is deprecated
This wa...
Roxie asked 7/8, 2022 at 21:52
2
Solved
I'm trying do make a non-editable exposed dropdown menu, following the guide under "Implementing an exposed dropdown menu" found here: https://material.io/develop/android/components/text-fields/
H...
Redraft asked 3/5, 2020 at 20:23
3
When I open a new android studio project, the default color for button is purple. I want the default color to be the gray default button color(I assume you know what I mean). I tried to change the ...
Metempirics asked 17/10, 2020 at 8:22
2
Solved
I've been following the documentation, but unfortunately it doesn't include the adaptation when using Material Component as app overall theme.
<style name="Theme.App" parent="Th...
Ide asked 2/4, 2022 at 16:58
10
Solved
I have a bottom sheet that should go between 2 states, STATE_COLLAPSED and STATE_EXPANDED
when it's collapsed the hight should be 200dp and when expanded it will be full screen.
So I'm setting the...
Pelvic asked 26/12, 2019 at 11:43
5
Solved
I am designing a custom Drawer on Android, it must have rounded corners in top and bottom, I am first customizing top side and I find the problem that the background of the shape is not transparent...
Fuel asked 13/9, 2019 at 20:6
7
Solved
I've seen that in android-P google add new material components library which contains material chips:
Material components for android
Material.io chips usage
Material components on GitHub
So I...
Eccentricity asked 29/5, 2018 at 0:54
2
I need to remove the bottom line of TextInputEditText I set background to transparent and null but nothing is working.
<com.google.android.material.textfield.TextInputLayout
android:layout_widt...
Stoddart asked 24/9, 2019 at 11:19
3
Solved
<com.google.android.material.button.MaterialButton
android:id="@+id/button_tour"
app:cornerRadius="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lay...
Beamends asked 3/12, 2019 at 3:39
2
Solved
Android 12's settings' switches now look like this,
which its code is here:
https://android.googlesource.com/platform/packages/apps/Settings/+/c4cc279a2a32e6b5dfac9af4a16a4d98def82a22/res/xml/conf...
Predikant asked 13/3, 2022 at 12:46
© 2022 - 2024 — McMap. All rights reserved.