widgetLayout和android:机器人的区别布局preference? [英] Difference between android:widgetLayout and android:layout for preference?

查看:1180
本文介绍了widgetLayout和android:机器人的区别布局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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆