Gallery/AdapterView Child Drawable State

前端 未结 3 1694
心在旅途
心在旅途 2021-01-12 09:29

I am using a Gallery view where the view corresponding to each item is non-trivial and consists of text as well as multiple buttons.

When I click to drag the gallery

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 10:12

    Not sure where the duplicateParentState property comes into play, but breaking through the source shows that it is never taken into account for the selected and pressed states. I would up creating a custom view class and overriding the dispatchSetSelected and dispatchSetPressed methods.

提交回复
热议问题