I need to create such buttons for my project ... that is, I need to create such a style. I tried, but I can't do it if you know, help))
- if you tried, attach the code exactly how you tried it. There are no psychics. - UjinUkr
- 2Yes! (No, just an assumption) Most likely this is a regular Button with shape and gradient, well, or a picture as a background - Oleg Kotenko
- Here is the code to drawable: <selector <item android: state_pressed = "true"> <shape> <solid android: color = "# AAAAAA" /> <corners android: radius = "4dp" /> </ shape> </ item > <item> <shape> <gradient android: startColor = "# EF771A" android: endColor = "# EE814D" android: angle = "270" /> <corners android: radius = "4dp" /> <stroke android: width = "1dp" android: color = "# ffffff" /> </ shape> </ item> </ selector> - Tony
|
