Android Button default state -


why button's default behaviour state_activated="false"?

using selector never reaches last row, stays on second line:

<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/colorprimary" android:state_enabled="false"/> <item android:drawable="@color/colorprimarydark" android:state_activated="false"/> <item android:drawable="@color/coloraccent"/> 

let's selector shared amongst buttons , layouts pose button, in layout's case, setactivated(false) needed change background.

the default state of activated false views. easiest way understand why consider case of tabs on viewpager.

the activated tab 1 represents visible page - doesn't make sense multiple tabs activated @ same time.

i mentioned in blog post activated described "selected" didn't know terms android used.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -