0

I am using a button with my own back ground color in android and that button is not getting focus what is the problem?

Sando
  • 1,893
  • 11
  • 29
  • 45

1 Answers1

1

Buttons normally will not have focus by touch. Also focus depends on the background.

So, check the background - it needs to be of type drawable with multiple states or you need to make a gradient. Check Standard Android Button with a different color

Community
  • 1
  • 1
Kamen
  • 3,575
  • 23
  • 35