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...
Alterant asked 31/7, 2019 at 3:55
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...
Purchasable asked 1/5, 2020 at 8:48
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....
Rarefy asked 26/8, 2019 at 9:44
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:...
Leelah asked 26/4, 2021 at 7:56
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...
Interdepartmental asked 24/4, 2021 at 9:8
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...
Toplevel asked 7/6, 2020 at 12:21
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...
Terrilynterrine asked 13/10, 2019 at 11:39
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...
Hegira asked 19/7, 2020 at 14:17
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...
Kind asked 15/3, 2021 at 8:30
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...
Soil asked 24/11, 2018 at 19:6
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...
Disciplinary asked 17/7, 2019 at 10:6
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...
Brenner asked 13/9, 2020 at 6:11
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...
Martsen asked 29/11, 2019 at 8:31
3
How to change inactive border stroke color of Android Material TextInputLayout component [duplicate]
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...
Otten asked 14/12, 2020 at 4:32
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...
Sigismond asked 24/12, 2012 at 13:57
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...
...
Jakob asked 6/1, 2019 at 21:46
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 ...
Strobila asked 16/9, 2019 at 12:17
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...
Occlude asked 15/3, 2016 at 6:48
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...
Darwin asked 23/7, 2018 at 14:21
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...
Eatable asked 10/2, 2019 at 4:48
© 2022 - 2024 — McMap. All rights reserved.