Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当一个 LinearLayout 状态更改为 selected = "true" 时,他的孩子的状态是否也更改为 selected = "true" ?
感谢您的回答。
不,孩子仍然未被选中。如果您提供一些代码,我会改进我的答案...
用于它的孩子:
在xml中
anroid:duplicateParentState="true"
或者在java中
setDuplicateParentState(true);