|
@@ -1,19 +1,32 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
tools:context=".MainActivity"
|
|
tools:context=".MainActivity"
|
|
|
- android:id="@+id/view_test">
|
|
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
|
+ android:gravity="center_horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
|
|
|
+ android:id="@+id/tv_name"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="Hello World!"
|
|
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
|
|
+ android:layout_marginTop="16dp"/>
|
|
|
|
|
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ android:id="@+id/btn_test"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="跳到下一个界面"
|
|
|
|
|
+ android:layout_marginBottom="16dp"/>
|
|
|
|
|
+
|
|
|
|
|
+ <Button
|
|
|
|
|
+ android:id="@+id/view_test"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="耗时任务"
|
|
|
|
|
+ android:layout_marginBottom="16dp"/>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+</LinearLayout>
|