线性布局LinearLayout是一个视图容器,用于使所有子视图在单个方向保持对齐
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="200dp"
android:layout_height="90dp"
android:background="#4593Ec&
Android LinearLayout线性布局
最新推荐文章于 2023-02-19 13:16:09 发布