且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

widgetLayout和android:机器人的区别布局preference?

更新时间:2023-11-19 08:57:16


  

安卓widgetLayout


块引用>

为preference的可控部件部分的布局。此膨胀到布局为一个preference并且应该比布局属性更频繁地使用。例如,一个复选框preference将指定一个自定义布局(只包含一个CheckBox的)在这里。

检查此链接更多的解释

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?

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