有什么意见和部件之间的差异 [英] what is the difference between views and widgets

查看:80
本文介绍了有什么意见和部件之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道意见是超类的部件,如果我没有错,但我怎么区分视图和小部件之间。 E.x.一个按钮或文本框等等。我应该叫他们(视图或构件)???

I know that views is the superclass for widgets if I am not wrong but how do I differentiate between a view and a widget. E.x. a button or a textbox etc. what should I call them (a view or an widget)???

推荐答案

称他们要么是好的。

我倾向于使用术语小部件为查看子类具有视觉重presentation用户在默认情况下 - 比如的TextView 按钮的ListView 等。

I tend to use the term "widget" for subclasses of View that have a visual representation to the user by default -- things like TextView, Button, ListView, etc.

我倾向于使用视图一词的东西,可能是的任意的的查看子类,其中包括纯粹的容器,如的LinearLayout

I tend to use the term "view" for something that could be any subclass of View, including pure containers like LinearLayout.

不过,再有就是在指给他们这些词没有特别的危害。

But, again, there is no particular harm in referring to them by either term.

这篇关于有什么意见和部件之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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