widgetLayout和android:机器人的区别布局preference? [英] Difference between android:widgetLayout and android:layout for preference?
问题描述
我收到一些奇怪的配置,其中widgetLayout配置列表项的内部空间和布局配置整个项目列表和屏幕背景?有人能真正解释什么是widgetLayout?
安卓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
这篇关于widgetLayout和android:机器人的区别布局preference?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!