显示学生信息
1.编辑activity_main.xml
2.编辑strings.xml
1.编辑activity_main.xml
下面展示一些 内联代码片。
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/XH"
android:paddingTop="10dp"
android:textSize="30sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/XM"
android:paddingTop="10dp"
android:textSize="30sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/XB"
android:paddingTop="10dp"
android:textSize="30sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/NL"
android:paddingTop="10dp"
android:textSize="30sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ZY"
android:paddingTop="10dp"
android:textSize="30sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/BJ"
android:paddingTop="10dp"
android:textSize="30sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/DH"
android:paddingTop="10dp"
android:textSize="30sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/AH"
android:paddingTop="10dp"
android:textSize="30sp"/>
2.编辑strings.xml ![在这里插入图片描述](https://img-blog.csdnimg.cn/20210113200207649.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2FzZGhramRrXw==,size_16,color_FFFFFF,t_70) 运行结果: ![在这里插入图片描述](https://img-blog.csdnimg.cn/20210113200225610.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2FzZGhramRrXw==,size_16,color_FFFFFF,t_70)