material-components-android Questions
11
Solved
In this android project im creating a default button style.
my styles.xml
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item ...
Lynxeyed asked 6/8, 2015 at 14:25
3
I am getting this error multiple times in all my Jetpack compose projects. Is this error an issue related to the Gradle? Because I have not changed anything to the Theme.
java.lang.NoSuchFieldError...
android-studioandroid-jetpackmaterial-components-androidandroid-jetpack-navigationandroid-jetpack-compose
Reba asked 5/12, 2020 at 20:4
2
I'm trying to use the new Material 3 Search Bar (https://github.com/material-components/material-components-android/blob/master/docs/components/Search.md). So I implemented it like this
<com.goo...
Inoculation asked 12/4, 2023 at 14:17
5
Solved
i have used range date picker from google material with this library
implementation 'com.google.android.material:material:1.2.0-alpha02'
this is my code
MaterialDatePicker.Builder<Pair&l...
Contestant asked 10/12, 2019 at 10:36
2
Solved
SwitchPreferenceCompat still retains the old Switch style, I know to be able to style it Material 3 in the following way:
theme.xml
<style name="Theme.Material3.Preference" parent=&quo...
Hootenanny asked 18/11, 2022 at 9:17
6
I'm doing a list with Chips. I want this chips can be selected, so, taking a look to https://material.io/develop/android/components/chip/ I see I can have a "Choice Chip".
As I need to create and ...
Dabster asked 30/11, 2018 at 12:44
3
I need to make the following UI using chips
I have already implement the chips and make it checkable, but I do not know how to change the style of it to be like the picture
I changed the stroke...
Constrict asked 9/3, 2019 at 21:50
2
Solved
I want a Row in Jetpack Compose, something like this:
----------------------------------------------------
| A | B | | C |
----------------------------------------------------
I want A & B to ...
Nichellenichol asked 2/4, 2022 at 6:23
4
Solved
I would like to have my Navigation View's background be #121212, however it turns to be a much lighter grey. However a item in the view has the proper color displayed when the same color is applied...
Enliven asked 25/11, 2019 at 5:45
2
working on an edge2edge display app, i came across a situation about scaffold, according to the official doc, the scaffold padding values are used to offset the top and bottom bars, if they exist. ...
Undone asked 2/2, 2023 at 20:54
12
Solved
I have a com.google.android.material.button.MaterialButton component in one of my layout file and I get this error when I am using the latest version of the Material Components library (com.google....
Mantoman asked 12/6, 2018 at 16:3
2
Solved
I would like to use CircularProgressIndicator from Material Library width custom size, but when I set any width or height to the view, just view Itself changing not circle inside it.
what I want to...
Bowerbird asked 15/2, 2021 at 9:38
3
Solved
Decided to try out Material Design 3 in my new Jetpack Compose project. Everything was cozy until I needed to show a Snackbar when I hit a wall.
In MD2 this was super-easy and you would show the sn...
Ken asked 10/7, 2022 at 5:38
3
Is there any way how to change default dialog buttons colour, or do I need to do custom dialog for that?
This is my dialog:
private void removeItem(final int position) {
/** Create dialog which ...
Seclusive asked 16/7, 2019 at 8:52
3
Solved
I'm creating a form in android which asks for gender. To get this input I use Material Button Toggle Group which contains two buttons. I don't know how to know which button is clicked in my activit...
Localism asked 12/6, 2020 at 14:28
11
Solved
I am using MaterialCardView as my cardview layout. Now, Android-studio started showing me that instead of current implementation "com.google.android.material:material:1.0.0", I should update to 1.1...
Snips asked 12/2, 2020 at 6:29
2
Solved
Is there a way to have the menu overlap the header and footer here?
I am using androidx.compose.material3.Scaffold and NavigationDrawer.
It seems like the Scaffold's drawer slot is removed - https:...
androidmaterial-designandroid-jetpack-composematerial-components-androidandroid-jetpack-compose-material3
Bespeak asked 14/1, 2022 at 21:53
9
Solved
I'm using the new material components com.google.android.material:material with android x but I can't set a custom background to the button.
I know that I can use app:backgroundTint to change the ...
Sleuth asked 5/10, 2018 at 20:42
3
Solved
I am trying to change the style attributes from the Material Components Theme (like colorPrimaryVariant, colorOnSecondary and so on) but I get the following error:
Android resource linking failed
...
Vocalize asked 4/10, 2018 at 20:23
3
Solved
I am using TextInputLayout wrapped around a EditText for a RecyclerView item. I am using style "Theme.AppCompat.Light.NoActionBar". But still I get the error "Caused by: java.lang.IllegalArgumentEx...
Huonghupeh asked 19/9, 2019 at 9:0
5
Solved
I tried to create a AutoCompleteTextView, surrounded by a TextInputLayout. According to the documentation, I should use this style:
Widget.MaterialComponents.TextInputLayout.*.ExposedDropdownMenu
...
Temptation asked 12/6, 2019 at 8:8
8
Solved
I'm calling a MaterialDatePicker like this in Android:
MaterialDatePicker.Builder<Pair<Long, Long>> builder = MaterialDatePicker.Builder.dateRangePicker();
CalendarConstraints.Builde...
Britannic asked 19/11, 2019 at 9:50
6
Solved
Chip chip = new Chip(context);
chip.setBackgroundcolor(getResources().getColor(R.color.blue));
The above line gives the error:
java.lang.UnsupportedOperationException: Do not set the background...
Modulate asked 20/11, 2018 at 12:32
8
Solved
I use chipgroup with dynamic chips. I want the chips to get wrapped in width according to their text. But it takes extra spaces even without padding.
Below is my code:
xml:
<com.google.androi...
Gasp asked 23/5, 2019 at 0:34
5
The new material button from Google is really nice.
According to the documentation, we can set an icon who's shown by default on the left. Does anyone knows how to set it on the right? I can't find...
Pax asked 11/6, 2018 at 13:54
© 2022 - 2024 — McMap. All rights reserved.