So I’m making an android app that has more than 100 buttons,but you know when you tap a button normally when you don’t changed the background or anything it flashes orangish color. However since I’ve added a background color to my buttons when they’re tapped it just goes to the next screen and you can’t tell that you’ve tapped a Button!
Could someone help me please?
Sorry if I don’t know what those are called:(
Declare in drawables this selector and name it for example: button.xml
android:drawable can be color, image, another drawable…
And then you can declare your button as:
If you create your buttons in code you can call method: setBackgroundResource() and pass resource id.
Example:
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList