<ViewGroupClass xmlns:android="http://schemas.android.com/apk/res/android"id="@+id/string_name" (attributes)><widget or other nested ViewGroupClass>+<requestFocus/>(0 or 1 per layout file, assigned to any element)</ViewGroupClass>这里面有一个比较重要的类叫ViewGroup,这个XML的root节点必须是一个ViewGroup,或者是一个单一的Widget(整个XML只有一个元素)。Android几乎所有的UI似乎都和ViewGroup有或多或少的关系。但是它只是一个abstract class,并不能直接使用,我们能用的,是它的一些子类,例如:AbsoluteLayoutFrameLayoutLinearLayoutRelativeLayoutTableLayout

更多相关文章

  1. Android无法自动创建USB打印机节点/dev/usb/lp0
  2. Android设备节点的动态管理
  3. Android如何生成设备节点
  4. 二、Android应用的界面编程(六)ProgressBar及其子类[SeekBar、Rati
  5. Android用户界面 UI组件--TextView及其子类(二) Button,selector
  6. Android 中关于PathEffect子类的效果(中级)
  7. android 从Activity 获取 rootView 根节点
  8. android之Buffer类及子类学习

随机推荐

  1. android eclipse环境搭建
  2. 使用traceview进行Android性能测试
  3. Andriod开发环境安装
  4. Android(安卓)greenDAO 数据库 简单学习
  5. android 如何连真机测试
  6. android 单元测试出现错误及改正
  7. Android(安卓)从JNI中传入UTF8 的字符到J
  8. 在Android项目中使用Java8
  9. Android手机无法访问百度空间的解决办法
  10. Android中的android:layout_weight使用详