material-components-android Questions
7
Solved
How can I change all my buttons text color?
I know I can set the background color like follows :
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
...
<item nam...
Mirk asked 28/3, 2016 at 11:29
5
Information about my environment
Mac OS Big Sur: 11.4
VS for Mac: 8.10.6 (Build 10)
Xamarin.Android: 11.3.0.4
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 31.0.2
SDK Build Tools Version: ...
Astroid asked 15/7, 2021 at 14:51
2
Solved
I'm trying to create a different font style for the hint and the text. Something similar to
this.
My code so far:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/f...
Muscovado asked 29/8, 2020 at 10:23
2
Solved
I want to change the color of the selected area in the bottom navigation view material 3, but the color does not change in any way. I've tried selector, background, background Tint, and styles. All...
Lightning asked 17/12, 2021 at 19:3
8
Solved
How can I force a ChipGroup to act like a RadioGroup as in having at least one selected item always? Setting setSingleSelection(true) also adds the possibility to have nothing selected if you click...
Lashandralashar asked 5/11, 2018 at 13:6
3
Solved
I want to center align the text in the extended floating action button but I'm not able to do that. As you can see in the image below the text is not centrally aligned.
Here's is the code for exte...
Centistere asked 26/2, 2021 at 15:54
3
i wanted to keep the tooltip value visible always and also the text of tooltip should be background transparent.
i tried https://github.com/material-components/material-components-android/blob/mast...
Fervent asked 1/8, 2021 at 18:16
3
Solved
I am doing show or hide password using below code
pwdLayout.setEndIconMode(TextInputLayout.END_ICON_PASSWORD_TOGGLE);
I am able to achieve show or hide password.
But eye icon with cross sign is sh...
Marquet asked 11/9, 2020 at 7:25
5
Solved
I was using the BottomSheetBehavior with the original support library:
implementation 'com.android.support:design:27.1.1'
When I migrated to use the new androidx libraries though the BottomShee...
Lizbeth asked 31/7, 2018 at 15:37
6
Solved
I've been trying to set a gradient background in a Material Button from Material Components for Android, but it's not working.
So, how to set a gradient background in a Material Button?
Lithomarge asked 20/10, 2018 at 17:0
4
I have a problem with my hint when I want write in the EditText my hint overlaps the OutlinedBox
so I don't understand what is the problem. So this my code
<com.google.android.material.textfie...
P asked 28/5, 2020 at 10:45
4
Solved
I am trying to make AutoCompleteTextView look like this image https://ibb.co/ZJxmgK5 but unable to do the same. The outlined box is not visible in the result
Below is my current code. Earlier I tr...
Bogor asked 26/8, 2019 at 8:34
2
Solved
With Jetpack Compose, using Material 2, you can see if a theme is in light mode easily with the following
val light = MaterialTheme.colors.isLight
Using Material 3, I don't see this ability. Is th...
Both asked 23/3, 2022 at 17:45
3
Solved
I am trying to insert an icon in the beginning of a Material Text Field. I couldn't find anything suitable in material.io's documentation as well.
This is what I am trying to achieve.
Labdanum asked 6/10, 2019 at 19:12
5
Using new material design slider com.google.android.material.slider.Slider. The documentation is quite poor for it as it has been just recently released. Trying to get value from slider but no luck...
Bubbler asked 16/6, 2020 at 13:15
1
Solved
colorInversePrimary and colorShadow is missing in Theme.Material3.Light.NoActionBar
my material version is 'com.google.android.material:material:1.6.0-alpha03'
<item name="colorInversePrim...
Susi asked 28/2, 2022 at 8:26
3
Exposed Dropdown Menu doesn't show items after user selection and fragment transition.
Following is the basic xml declaration:
<com.google.android.material.textfield.TextInputLayout
...
style=...
Ale asked 29/1, 2021 at 18:15
5
Solved
This is my app theme:
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
I got an inflate error caused by a not using a desired theme. In the Manifest I didn't over...
Caput asked 21/7, 2019 at 14:24
11
Android Studio 3.2.1
Here my layout:
<com.google.android.material.button.MaterialButton
android:id="@+id/bittrexJsonViewButton"
android:layout_width="0dp"
android:layout_height="@dimen/min_h...
Marozik asked 10/3, 2019 at 11:5
4
Solved
Android Studio 3.6
in my styles. xml
<style name="buttonStyle">
<item name="android:textColor">@color/default_button_textColor</item>
<item name="android:backgroundTint"&g...
Kilgore asked 27/10, 2019 at 15:22
5
Solved
Tried Chip component from both support library
com.google.android.support:design:28.0.0-rc01 and material
com.google.android.material:material:1.0.0-rc01
StackTrace
android.view.InflateExcept...
Streptococcus asked 16/8, 2018 at 13:4
1
Solved
How would I implement a monochrome icon like other google apps so that it matches the dynamic colours picked by Material You?
Crescentic asked 14/2, 2022 at 8:38
5
Solved
I'm trying to create a custom view extending from MaterialButton and apply style in code so I don't need to do it in xml.
class CustomRedButton @JvmOverloads constructor(
context: Context,
att...
Amoebocyte asked 19/9, 2018 at 8:42
4
Solved
I am migrating the calendar components to the new Materials library, MaterialDatePicker, however I am having problems in doing something as simple as changing the name of the confirm button texts
...
Biblioclast asked 11/12, 2019 at 14:23
2
Implementing BaseOnSliderTouchListener's onStartTrackingTouch and onStopTrackingTouch (documentation) give the lint the following error message :
Error: BaseOnSliderTouchListener.onStartTrac...
Nabors asked 27/1, 2022 at 3:57
© 2022 - 2024 — McMap. All rights reserved.