Reputation: 15297
What is the visual difference between focused
/pressed
on mobile device (android)?
Other status are interesting too, but those are most popular to distinguish.
Could you provide any graphics?
Regards
Upvotes: 0
Views: 85
Reputation: 8337
state_focused is whenever the button is focused on using a dpad or the trackball. Views don't generally show a focused state when using touch.
android:state_pressed
Boolean. "true" if this item should be used when the object is pressed (such as when a button is touched/clicked); "false" if this item should be used in the default, non-pressed state.
android:state_focused
Boolean. "true" if this item should be used when the object has input focus (such as when the user selects a text input); "false" if this item should be used in the default, non-focused state.
Edit :
For Button :
android:state_focused
is whenever the button is focused on using a dpad or the trackball. Views don't generally show a focused state when using touch.
You Also Should Refer This Link For Detailed Information About State List
Upvotes: 1
Reputation: 129
its something like this
By the way you can check google for something like this it'll be faster for you :)
Upvotes: 1