Difference between android:widgetLayout and androi

2019-06-27 01:25发布

I'm getting some weird configuration where widgetLayout configures the inner space of a list item and layout configures the whole item list and the screen background? Can someone actually explain what is the widgetLayout?

2条回答
叛逆
2楼-- · 2019-06-27 01:28

android:widgetLayout

The layout for the controllable widget portion of a Preference. This is inflated into the layout for a Preference and should be used more frequently than the layout attribute. For example, a checkbox preference would specify a custom layout (consisting of just the CheckBox) here.

Check this link for more Explanation

查看更多
Animai°情兽
3楼-- · 2019-06-27 01:29

android:layout: The layout for the entire Preference (include title, summary and widget)

android:widgetLayout: The layout for the controllable widget portion of a Preference (e.g. a checkbox preference would specify a custom layout consisting of just the CheckBox here)

https://code.luasoftware.com/tutorials/android/override-layout-of-android-preference/

查看更多
登录 后发表回答