Custom Checkable View which responds to Selector

前端 未结 6 485
生来不讨喜
生来不讨喜 2021-01-30 23:11

I have a group of FrameLayout which I want to be checkable/selectable,

That is, after a click I would like the FrameLayout to display as

6条回答
  •  感情败类
    2021-01-30 23:52

    Try using android:state_activated.

     
    

    From the docs:

    State value for StateListDrawable, set when a view or its parent has been "activated" meaning the user has currently marked it as being of interest.

提交回复
热议问题