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

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

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

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

1

Solved

How would I implement a monochrome icon like other google apps so that it matches the dynamic colours picked by Material You?

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

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

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.