Hi Android Community,
I want to change the background color of my overflow menu item when cliked,
but it doesn't work.
My xml style file is like this:
- @color/colorPrimary
- @color/colorPrimaryDark
-
Hi all,
I'm trying to get the background color of a button. This color was
applied on this button with the XML code.
It's little complicated !!!
I tried some solutions like:
Drawable d = findViewById(R.id.my_btn).getBackground();
But i can't obtain the background color code.
Any people have
Anthony,
In general, a background is not necessarily a solid color - it can be an
bitmap, a nine-patch, a gradient, state list, etc.
If you know that you specified a solid color in XML, you could try
casting the Drawable to a ColorDrawable:
Hi all,
In a web page..if i select some text, the background color changes
from white to pink. I am trying to understand where exactly this
change is happening. Interested to know more about color change of
rectangular area of selected text.
Kindly help me to locate this piece of code.
Thanks in
hi ,
How to set the background color of a preference screen?
Thanks
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
You can see background color with android:background=#FF attribute in
XML file
hexadeciml code can be calculated using following link:
http://www.drpeterjones.com/colorcalc/
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
6 matches
Mail list logo