material-components-android Questions

3

Solved

I've got an error for 'Theme.MaterialComponents.Light.NoActionBar' in styles.xml (the 'Theme.MaterialComponents.Light.NoActionBar' is colored red because of error) after several gradle update. My c...

3

Solved

I want to change the arrow color to white. how to do it? here's my code <com.google.android.material.textfield.TextInputLayout style="@style/ExposedDropdownMenu" android:hint="Select" andr...

2

Solved

I am using the new Google Material Components for Android Currently, I am trying to give a custom look for Tablayout (com.google.android.material.tabs.TabLayout). I have created a style as follo...
Gilges asked 10/11, 2018 at 11:11

4

Solved

After migrating a couple of my older projects over to AndroidX it as though three of my dependencies are deprecated: implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com....

1

Solved

I would use the BadgeDrawable in my Android app on a Button, the issue is that when i'm trying to set to the button layout the badgeDrawable via attachBadgeDrawable i get an error on it which says:...

1

Solved

I want to implement a progress bar similar to this: In material design documentation it says I need to set indeterminateAnimationType to contiguous to achieve this and provide three colors. But ho...

3

Solved

I'm using Android material components library's latest (1.3.0-alpha01) version to display a range slider (slider with two thumbs). Now need to customize the labels and always show each thumb's valu...

7

Solved

We are trying to create a Snackbar. The code from a Java app was converted using the Java to Kotlin converter in Android Studio. Next we looked at various examples on many different websites and ev...
Handtomouth asked 22/8, 2018 at 17:18

4

I want to customize my ActionBar. My Theme looks as below: <style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> <item name="actionBarStyle">@style/MyActionBar</item&g...

4

Solved

Is there any way to remove floating label (hint) when the user clicks on the text field? When I click on the text field, the hint just automatically moves above the editText but it does not disappe...

1

I can not able to change the background of the selected MaterialButton. <com.google.android.material.button.MaterialButtonToggleGroup android:id="@+id/toggleButton" android:layout_wi...

2

Solved

ShapeableImageView takes a ShapeAppearanceOverlay item in style to create desired shapes and sizes. The shape families are cut and rounded, radius can be used as a number or in percentages. Here is...
Stakhanovism asked 14/3, 2021 at 12:14

6

Solved

I am using the following material button: <android.support.design.button.MaterialButton android:id="@+id/bFavourite" style="@style/Widget.MaterialComponents.Button.UnelevatedButton.Icon" andr...

2

Solved

I just want to add badge for a menuItem of BottomNavigationView in my app. I'm using BottomNavigationView of Material Components library(version 1.1.0-alpha08) since its the latest version released...

1

Solved

I am using a custom theme for dialogs in my app. The custom theme applies to the alert dialogs just fine. But the theme does not apply on the preference dialogs like ListPreference, CheckboxPrefere...

2

Solved

I am trying to show a multiline button inside a MaterialButtonToggleGroup but it always shows me ... at the newline but it works fine outside the MaterialButtonToggleGroup I have tried using \n an...
Waggle asked 8/9, 2020 at 11:25

2

Solved

I have tried implementing TextInputLayout with the new prefixText, using com.google.android.material:material:1.2.0-alpha02. This is a very cool feature, but when I add a prefix text the hint label...

3

I am trying to setting up TextInputLayout unfocused border stroke color. For the same, There are too many questions and their answers and I have tried all of them. Like Created styles and use...

3

I have a custom built circular progress bar used for a seconds counter on a clock, which I'd like to flip, so that the clock is counting counter-clockwise. Searching here for a solution, I found t...

1

I'm using below with androidx in Android studio 3.5.3: androidx.recyclerview.widget.RecyclerView com.google.android.material.floatingactionbutton.FloatingActionButton My gradle is as below:...
Polyunsaturated asked 25/9, 2020 at 8:44

2

Solved

How to use diamond style for fab + bottom app bar? In the sketch files on the website https://material.io/tools/theme-editor/ there are such styles fab: Looked at all possible styles and tags... ...

3

when i implementation 'androidx.appcompat:design:1.1.0' code in build gradle(module app) it says ERROR: Failed to resolve: androidx.appcompat:design:1.1.0 i have try to change the implementation ...

3

I have a custom linear layout which has DatePicker and TimePicker widgets in it. This is used as DateTime picker. I want to restrict the DatePicker by way of setMaxDate() and setMinDate(). I have d...

3

Solved

How I can remove the monospace font from my buttons using the new material components? <com.google.android.material.button.MaterialButton android:id="@+id/btn_register" style="@style/Widget.M...

5

I am using MaterialComponents.DayNight theme in my app. In the day mode, toolbar text color is black. But when I switch to night mode toolbar text color is remain black, so it's not visible anymore...

© 2022 - 2024 — McMap. All rights reserved.