Wednesday, February 26, 2014

How to control with selector Android Button background color, note not add background images


How to control with selector Android Button background color, note not add background images<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
The @ drawable / xxx Why not replace the color values ​​~
Reply:
Amount. . Tried it. . Does not compile - but I think you can cut a small piece of color pictures to use as a color. .
Reply:
 


android: drawable =! "@ android: color / white" /> <- pressed ->
<-! default ->


Reply:
reference to the third floor kenshintang1215 reply:
XML code



android: drawable = "@ android: ......


I ask if the next custom "# aabbcc" how to set it?
Reply:



So with the imageButton
Reply:
5th Floor method tricky!
Reply:
5th Floor method tricky!

No comments:

Post a Comment