1. View and ViewGroup 是什么?

    View是绘制在屏幕上的用户能与之交互的一个对象。而ViewGroup则是一个用于存放其他View(和ViewGroup)对象的布局容器!

    1. 解释代码:

      1. <?xml version="1.0" encoding="utf-8"?>
      2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      3. android:layout_width="fill_parent"
      4. android:layout_height="fill_parent"
      5. android:orientation="vertical" >
      6. <TextView android:id="@+id/text"
      7. android:layout_width="wrap_content"
      8. android:layout_height="wrap_content"
      9. android:text="I am a TextView" />
      10. <Button android:id="@+id/button"
      11. android:layout_width="wrap_content"
      12. android:layout_height="wrap_content"
      13. android:text="I am a Button" />
      14. </LinearLayout>
    2. 安卓的布局 6 options

    3. LinearLayout代码含义

    2015安卓基础入门开发Chapter 2.1-2.2 - 图1

    gravity 和 layout_gravity的区别?**
    gravity是设置自身内部元素的对齐方式。比如一个TextView,则是设置内部文字的对齐方式。如果是ViewGroup组件如LinearLayout的话,则为设置它内部view组件的对齐方式。
    layout_gravity是设置自身相当于父容器的对齐方式。比如,一个TextView设置layout_gravity属性,则表示这TextView相对于父容器的对齐方式。

    1. 使用RelativeLayout: 使用条件

    2. 组件一览,解释代码含义:

    2015安卓基础入门开发Chapter 2.1-2.2 - 图2

    1. TableLayout

    2015安卓基础入门开发Chapter 2.1-2.2 - 图3分别解释collapse, stretch, shrink的作用
    如何添加行

    1. Framelayout。framelayout的特点?

    如何设置前景图像,前景图像的位置

    1. GridLayout 网格布局

    2015安卓基础入门开发Chapter 2.1-2.2 - 图4rowSpan 和columnSpan与layout_gravity如何一起用?

    使用GridLayout的流程?3 steps

    最低支持GridLayout的SDK是哪个版本?

    低版本的SDK如何使用GridLayout?