只是显示界面。
一个基础的嵌套使用
示例代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
>
<ImageView
android:id="@+id/imageview1"
android:layout_width="100dp"
android:layout_height="100dp"
android:padding="5dp"
android:src="@drawable/cat"
/>
<TextView
android:id="@+id/textView_appName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:text="应用名称"
android:textSi