material-components-android

Android button background is taking the primary color

拜拜、爱过 提交于 2021-01-20 07:09:19
问题 I've this issue, I don't know where it come from, I've created this buttons with custom background, but the background color talking the primary color and cannot change it unless change the primary color. <Button android:id="@+id/btn_teacher" style="@style/normalText" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/_16sdp" android:background="@drawable/btn_rounded_stroke" android:text="@string/txt_teacher" /> <resources> <color name

Android material button taking color primary instead of color accent

跟風遠走 提交于 2021-01-07 01:21:34
问题 I have my layout button as - <com.google.android.material.button.MaterialButton android:id="@+id/save_button" style="@style/buttonView" android:text="Save" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" /> In my styles.xml , I have - <style name="buttonView" parent="Theme.MyTheme"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> <item name="android:layout_marginStart">16dp</item> <item

popup menu background color change not working

岁酱吖の 提交于 2021-01-05 10:24:40
问题 i am begineer in android. I want to popup menu background color change.I try this code for background color change but its not working for me.i don't know why not working this code. <!--popup menu item style--> <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.MaterialComponents.Light"> <item name="android:textColor">@color/colorWhite</item> <item name="android:popupBackground">@color/colorBlack</item> <item name="actionOverflowMenuStyle">@style/CMOptionsMenu</item> <item name="android

popup menu background color change not working

只谈情不闲聊 提交于 2021-01-05 10:22:04
问题 i am begineer in android. I want to popup menu background color change.I try this code for background color change but its not working for me.i don't know why not working this code. <!--popup menu item style--> <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.MaterialComponents.Light"> <item name="android:textColor">@color/colorWhite</item> <item name="android:popupBackground">@color/colorBlack</item> <item name="actionOverflowMenuStyle">@style/CMOptionsMenu</item> <item name="android

How to pick time using material design?

淺唱寂寞╮ 提交于 2020-12-26 04:43:45
问题 how to pick a time using material:1.3.0-alpha01, I am looking time picker following screenshot, which I found in material io. I tried date picker is working Material Date picker //Creating a MaterialDatePicker.Builder instance that gives us a single date selector. val builder : MaterialDatePicker.Builder<*> = MaterialDatePicker.Builder.datePicker() // 1 //Building-up the MaterialDatePicker by calling a builder.build function val picker : MaterialDatePicker<*> = builder.build() // 2 //Display

How to pick time using material design?

冷暖自知 提交于 2020-12-26 04:43:42
问题 how to pick a time using material:1.3.0-alpha01, I am looking time picker following screenshot, which I found in material io. I tried date picker is working Material Date picker //Creating a MaterialDatePicker.Builder instance that gives us a single date selector. val builder : MaterialDatePicker.Builder<*> = MaterialDatePicker.Builder.datePicker() // 1 //Building-up the MaterialDatePicker by calling a builder.build function val picker : MaterialDatePicker<*> = builder.build() // 2 //Display

How to pick time using material design?

僤鯓⒐⒋嵵緔 提交于 2020-12-26 04:43:21
问题 how to pick a time using material:1.3.0-alpha01, I am looking time picker following screenshot, which I found in material io. I tried date picker is working Material Date picker //Creating a MaterialDatePicker.Builder instance that gives us a single date selector. val builder : MaterialDatePicker.Builder<*> = MaterialDatePicker.Builder.datePicker() // 1 //Building-up the MaterialDatePicker by calling a builder.build function val picker : MaterialDatePicker<*> = builder.build() // 2 //Display

Issue: change border color or box stroke for unfocused TextInputLayout in android

女生的网名这么多〃 提交于 2020-11-30 04:42:22
问题 I have a very specific issue for changing the outline of the textbox for TextInputLayout when it's unfocused. I can't seem to find an attribute to change the color for the border of my "unfocused" text box. Here's a visual example of what I'm trying to do: The color of this (textbox):border is not white. currently its not focused. After I click it, it turns white: I don't know what I need to change, it doesn't seem like there is an attribute to change it. I'm also using material design text

Issue: change border color or box stroke for unfocused TextInputLayout in android

旧街凉风 提交于 2020-11-30 04:39:00
问题 I have a very specific issue for changing the outline of the textbox for TextInputLayout when it's unfocused. I can't seem to find an attribute to change the color for the border of my "unfocused" text box. Here's a visual example of what I'm trying to do: The color of this (textbox):border is not white. currently its not focused. After I click it, it turns white: I don't know what I need to change, it doesn't seem like there is an attribute to change it. I'm also using material design text

Issue: change border color or box stroke for unfocused TextInputLayout in android

时光毁灭记忆、已成空白 提交于 2020-11-30 04:38:29
问题 I have a very specific issue for changing the outline of the textbox for TextInputLayout when it's unfocused. I can't seem to find an attribute to change the color for the border of my "unfocused" text box. Here's a visual example of what I'm trying to do: The color of this (textbox):border is not white. currently its not focused. After I click it, it turns white: I don't know what I need to change, it doesn't seem like there is an attribute to change it. I'm also using material design text