material-components Questions
4
Solved
I want to remove dropdown arrow which is created by AutoCompleteTextView when I use TextInputLayout and use Style: ExposedDropdownMenu
Below is my code:
<com.google.android.material.textfiel...
Martainn asked 21/9, 2019 at 8:41
5
I need to change color of the password toggle in TextInputLayout if EditText is focused or not. I've done it this way but it's not working. The color is always equals color light grey (from state f...
Pleadings asked 15/4, 2019 at 22:19
10
Solved
I'm using the latest version of the com.google.android.material:material library (i.e. 1.1.0-alpha03) and I have a MaterialButton defined with an icon and no text as follows:
I was hoping the Ma...
Atalaya asked 15/2, 2019 at 16:10
6
I search a lot on internet but couldn't find the exact solution. Here is the link that i last tried from SO.
Get selected Chips from a ChipGroup
I want to get selected chips from chip group when a...
Elderly asked 3/10, 2019 at 18:6
6
I am using Material Components for creating the Choice chip. I have followed https://material.io/develop/android/components/chip/ document. There is enough stuff for creating a chip in XML but not ...
Phonometer asked 26/3, 2019 at 5:47
29
Solved
I have a custom BttomSheetDialogFragment and I want to have round corners in top of Bottom View
This is my Custom class that inflates my layout that I want to appear from bottom
View mView;
@Overr...
Ayres asked 8/5, 2017 at 16:18
4
Solved
Currently working on setting up an Exposed Dropdown menu item using the material design components and guidelines for menus. However when displaying my autocomplete text view it does not have the s...
Tailrace asked 17/6, 2019 at 20:22
7
Solved
I have been working with BottomNavigationBar in the flutter, but I am not able to select a Tab programmatically outside of onTap callback of BottomNavigationBar.
The code with onTap callback, whic...
Coniah asked 21/6, 2018 at 5:46
16
Solved
What I'm trying to achieve is something like Instagram in-app web browser, used when you click an ad:
what I did, is I used a WebView bottomSheetDialogFragment, and I override onCreateDialog to ...
Divebomb asked 23/9, 2019 at 15:34
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
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
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
Solved
I have been combining the new(ish) Material BottomAppBar with a standard BottomNavigationView. My xml is like this:
<com.google.android.material.bottomappbar.BottomAppBar
android:id="@+id/bot...
Gurkha asked 4/9, 2019 at 9:43
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
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
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
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
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
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
5
Solved
Im using
implementation 'com.google.android.material:material:1.1.0-alpha09'
this is my menu
<item
android:id="@+id/llHome"
android:icon="@drawable/selector_menu_home"
android:title="@...
Mimamsa asked 28/8, 2019 at 9:4
8
I have a BottomSheetDialogFragment and i need to set my height in this dialog. I need, that when user tap on a button, dialog will appear and fills 85% of screen. How to do this?
Vite asked 31/10, 2019 at 21:58
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.