android-styles

How to set checkbox border color

人盡茶涼 提交于 2019-12-29 04:29:09
问题 The checkbox border is invisible on white background. I played with different color parameters without success. I need black border of box. Yes, there examples to make custom checkbox. In all drawable examples the normal box is visible inside of new shape. And the drawable shape is narrow without text in android:text="" . But why checkbox does not look okay in usual xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutBottom1" android:layout

Change the TextInputLayout outline color

…衆ロ難τιáo~ 提交于 2019-12-28 07:59:59
问题 I'm trying to customize a TextInputLayout with material style. I managed to set the focused state to the colors I want: Using <com.google.android.material.textfield.TextInputLayout style="@style/LoginTextInputLayoutStyle" android:theme="@style/LoginTextInputLayoutStyle" android:textColorHint="#fff" app:boxStrokeColor="#fff" .....> <EditText ... where the style is: <style name="LoginTextInputLayoutStyle" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"> <item name=

How to change color of EditText handles?

帅比萌擦擦* 提交于 2019-12-28 06:46:50
问题 Where does the green color comes from? I've tried changing the accentColor attribute, which works in other parts of the app, but not here. Screenshot from app in Lollipop. How can I change the colors of: the text handle drawables? how to tint them? the select-all-background color? And maybe some tips for the future... How did you find out? I've been coming across all these confusing color/styling problems. Is there some kind of list somewhere that tells me, which default color or attribute

How to change color of EditText handles?

旧城冷巷雨未停 提交于 2019-12-28 06:46:11
问题 Where does the green color comes from? I've tried changing the accentColor attribute, which works in other parts of the app, but not here. Screenshot from app in Lollipop. How can I change the colors of: the text handle drawables? how to tint them? the select-all-background color? And maybe some tips for the future... How did you find out? I've been coming across all these confusing color/styling problems. Is there some kind of list somewhere that tells me, which default color or attribute

Change horizontal progress bar indeterminate color

岁酱吖の 提交于 2019-12-25 05:57:09
问题 Is it possible to change horizontal indeterminate color? As of now it is take standard theme color. I would like to change it to orange? I know we have change the circle color I am not sure to change the horizontal color tried Theme, custom progress bar in drawable etc but couldn't get work. Here is the XML: <ProgressBar android:id="@+id/status_progress" style="?android:attr/progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="15dp" android:layout_below="@id

Android Action Bar Style Generator : Change text color of action bar not available?

你离开我真会死。 提交于 2019-12-25 05:52:39
问题 I use "Android Action Bar Style Generator" website to generate styles for my actionBar. There is no possibility to change the text color of actionBar ? http://jgilfelt.github.io/android-actionbarstylegenerator/#name=RoseNormal&compat=holo&theme=light&actionbarstyle=solid&texture=0&hairline=0&neutralPressed=1&backColor=e64260%2C100&secondaryColor=b8344c%2C100&tabColor=fff%2C100&tertiaryColor=F2F2F2%2C100&accentColor=33B5E5%2C100&cabBackColor=FFFFFF%2C100&cabHighlightColor=33B5E5%2C100 回答1: you

Android - Setting default style for EditText view is not working

安稳与你 提交于 2019-12-25 04:16:03
问题 I am trying to set default style for edit text view. In this example, I have set default style for editText as well as for textView. Here is my styles.xml from values folder: <resources> <style name="AppBaseTheme" parent="Theme.AppCompat.Light"> </style> <!-- Application theme. --> <style name="AppTheme" parent="AppBaseTheme"> <item name="android:editTextStyle">@style/AppTheme.EditText</item> <item name="android:textViewStyle">@style/AppTheme.TextView</item> </style> <style name="AppTheme

Cant change colorButtonNormal value to all buttons

倖福魔咒の 提交于 2019-12-25 04:11:52
问题 I am trying to make all buttons in my app have default color using colorButtonNormal in my style. It works nice on API 21 and above but under API 21 it only changes the background of some buttons and i dont know what is going wrong. styles.xml <resources xmlns:tools="http://schemas.android.com/tools"> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowContentOverlay">@null</item> <item name="android:textColorPrimary">@color/white</item> <item name=

Android : inflate() ignoring utilizing root layout width/height defined in style sheets. BInary XML error

无人久伴 提交于 2019-12-24 05:53:05
问题 I'm working on a project, and I'm converting the GUI over to Style sheets. I use a layout, and then a landscape/portrait set of style sheets. I use an inflator to inflate the layout, as I am dynamically adding and removing content, and the view itself is dynamically created and destroyed by an application which my code plugs into. myView = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.bearing_layout, parentView, false); Error: Java.Lang.RuntimeException: Binary XML file, line 2

how can i change spinner background color?

為{幸葍}努か 提交于 2019-12-24 00:38:55
问题 How can i change spinner background color ? this black color from style . How can i change style color for spinner pop up? I want to change background color white in place of black How can i change ? spinnner <Spinner android:id="@+id/spinner" android:layout_width="100dp" android:layout_marginTop="1dp" android:layout_height="wrap_content" android:background="@drawable/spinner_bg" android:layout_marginLeft="1dp"/> spinnerbg.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android=