android-styles Questions

2

Solved

How can I get this style in my android app? White navigationbar and grey icons. An example is when opening the application drawer. I have tried many options but without success. the application mi...
Kling asked 13/3, 2018 at 11:21

4

Solved

I'm trying to add a shadow on the bottom of a view, but I don't how to do it on Android. With elevation it put a shadow also on the top. Is there a way to do it like on iOS? Here's my code: export ...
Delacroix asked 18/2, 2019 at 16:44

6

I have set <item name="android:spinnerMode">dialog</item> and so when I tap the spinner, I get a popup. But that popup is grey with white text and I can't seem to change any of the c...
Rimester asked 19/2, 2017 at 8:55

3

I'm trying to style a TimePickerDialog for sdk 21+ (Lollipop). So far I've figured out how to change the default colorscheme in XML: <style name="TimePickerTheme" parent="@style/Theme.AppCompat...
Smallclothes asked 20/9, 2015 at 11:40

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

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

2

Solved

I want to create two themes, GrayTheme and RedTheme, that modify one style attribute. For example here are my two themes, default font color is white, which is fine for both themes: <style name...
Roadbed asked 8/4, 2015 at 20:18

8

Solved

I have been trying to make my Alert Dialog with rounded corners but somehow I am not able to. I have tried and I failed. I tried to follow this blog http://blog.stylingandroid.com/archives/271 and ...

6

Solved

I want to use the digital date picker dialog and time picker dialog, I have written the code and my picker dialogs are working, but I want them in another format. Currently, my time picker and date...
Tomokotomorrow asked 6/3, 2016 at 13:0

9

Solved

How would one fetch the accent color set in styles, like below, programmatically? <item name="android:colorAccent">@color/material_green_500</item>
Apterygial asked 22/12, 2014 at 22:8

5

Im trying to use android dark theme. I install android studio 3.5 preview. compileSdkVersion 28 targetSdkVersion 28 but still getting this error. Is this dark theme bug or Im doing something wr...
Smasher asked 16/5, 2019 at 7:34

6

Solved

I'm trying to change the color of my switch in Android. I realize that I will need new 9patches. I went over to http://android-holo-colors.com/ and selected my color and selected (Switch Jelly Bean...
Keenankeene asked 12/2, 2014 at 16:54

13

Solved

On recent android versions, number pickers use a blue divider when drawn (cf. image below). I would like to change this color. Is there a working solution? or perhaps a library that package an u...
Cowes asked 15/6, 2014 at 19:56

4

It's very strange that why fontFamily is not working on androidX . this is my code: <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_c...

16

Solved

I need to create an android shape so that only the bottom has stroke (a dashed line). When I try the following, the stroke bisects the shape right through the center. Does anyone know how to get it...
Kedron asked 8/10, 2013 at 3:47

5

I am using date picker and I need to style it with different colors. All things are working fine except the selected date color. The thing is selected date color takes "android:textColorPrimaryIn...
Groundsill asked 20/4, 2017 at 7:27

18

Toolbar background is dark color, I want text and back arrow to be white. I tried following, but it doesnt work. <style name="Theme.MyTheme" parent="Theme.AppCompat.Light.NoActionBar"> &lt...
Partiality asked 17/11, 2014 at 9:28

3

Solved

I know I can add different XMLs for different API levels, for example having different styles for values-v21 and values-v19. What I'm trying to understand is how the build system actually works wit...
Sitter asked 25/6, 2015 at 12:23

25

Solved

I've updated my SDK to API 21 and now the back/up icon is a black arrow pointing to the left. I would like it to be grey. How can I do that? In the Play Store, for example, the arrow is white. I'v...
Schoen asked 6/11, 2014 at 20:6

2

I have ProgressBar style in style.xml. When I create layout, put there ProgressBar and set style like: style="@style/ProgressBarStyle" set layout to dialog and all is fine. Other way create vi...
Beastly asked 10/10, 2014 at 16:3

2

Pre-Android 11 (API Level 30) I had <item name="android:windowLightStatusBar">true</item> set in my theme and was additionally changing this (when needed) in the the code with...
Gaylagayle asked 22/10, 2020 at 12:5

6

I'm trying to disable the action bar for some of my activities, but no matter what I try I can't seem to remove it. In my styles.xml I have: <style name="AppTheme" parent="Theme.AppCompat.Ligh...
Phyllous asked 25/2, 2016 at 2:54

16

I am using RecyclerView with rounded corner, to make it rounded corner I used below XML: view_rounded.xml:- <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.a...
Prosperus asked 25/2, 2015 at 7:13

3

Solved

Styling determinate progress bar is easy, there are many tutorials to achieve that. This is on I'm using: <ProgressBar style="?android:attr/progressBarStyleHorizontal" android:layout_width="m...
Ventilate asked 19/2, 2016 at 20:49

3

Solved

Is there any reason why is textColor property being ignored when it is set via custom textAppearance style? <style name="EditTextAppearance" parent="@android:style/TextAppearance.Widget.EditTex...
Thicken asked 19/7, 2017 at 16:34

© 2022 - 2024 — McMap. All rights reserved.