android-color Questions

8

Solved

As I wrote in my question, I want to change the color of the drop down arrow (the default arrow, not a custom arrow or something like that) of a Spinner in XML, but the problem is that I couldn't f...

9

Solved

I am trying to create a ColorStateList programatically using this: ColorStateList stateList = new ColorStateList(states, colors); But I am not sure what are the two parameters. As per the doc...
Writer asked 21/3, 2013 at 9:4

8

Solved

I have a function that takes a given color and I would like it to darken the color (reduce its brightness by 20% or so). I can't figure out how to do this given just a color (int). What is the prop...
Rubbish asked 12/10, 2015 at 2:26

5

Solved

I'm trying to implement the Color State List Resources in my android application, following Android developer guide Color State List Resource | Android Developers. So I created two resource files b...
Antepast asked 14/6, 2017 at 10:53

2

Solved

In my Android java code, how can I reference the color "colorPrimary" set in my theme? I have the following theme definition: <!-- Application theme. --> <style name="AppTheme" parent="A...

5

I am using a library . In which I am showing the activity used by my library I am using a color to cover up the screen with color. it is looking cool. But due to some reasons I have decided to us...
Berseem asked 19/2, 2016 at 8:51

1

Android supports Day/Night mode with ../values/colors.xml and ../values-night/colors.xml. If I wanted to add another color folder, say for high contrast colors (../values-highconst/colors.xm...

7

Solved

As you can see in the picture I have a android app with a black background and white text. However there is in fact a "Show Text" icon that looks like an "eye" and it is black as well :(. Is ther...
Wiley asked 30/8, 2016 at 9:28

1

API 26 introduces an advanced color calculation for ?textColorPrimary based on ?colorForeground. It makes use of states, primaryContentAlpha and disabledAlpha. sdk/platforms/android-26/data/res/co...
Santiagosantillan asked 23/5, 2018 at 7:54

2

Solved

What is best practice to organise styling of buttons of a professional android application? Assume a larger contemporary application (SDK 26+, min SDK 21). This question is answerable, as both the...

1

Solved

I have drawable xml up.xml as in the following code <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <...

3

Solved

I have this: round_button.xml <xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true"> &l...

2

I want to give the user the opportunity to select which color skin they'll have in my app. For example, I would implement a black skin with black colours with different tonalities and also a white ...
Odessa asked 13/7, 2016 at 10:32

6

Solved

I'm running an app on various devices and on two a certain shade of blue looks wrong. Please see the attached image. Any ideas why that is? If I replace the color with a different one without any ...
Mollie asked 22/9, 2015 at 17:51

4

Solved

Using: buildToolsVersion "22.0.1" , targetSdkVersion 22 in my gradle file. I found that the useful getResources().getColor(R.color.color_name) is deprecated. What should I use instead?
Nettle asked 5/8, 2015 at 21:16

5

Solved

Google has their Color - Guidelines, so how to randomly receive a color? Is there a way to specify a number from the table and receive a random color out of all colors of the table? For example ge...
Arda asked 18/9, 2015 at 15:9
1

© 2022 - 2024 — McMap. All rights reserved.