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...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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....

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 ...

7

<?xml version="1.0" encoding="utf-8"?> <resources> <color name="m3_ref_palette_dynamic_neutral0">@android:color/system_neutral1_1000</color> ...

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...

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...

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...

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...

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...

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...

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.