-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化布局
- Loading branch information
Showing
13 changed files
with
284 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<?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" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MainActivity"> | ||
|
||
|
||
<TextView | ||
android:id="@+id/textView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Hello World!" | ||
android:textSize="36sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toStartOf="@+id/scrollView2" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintVertical_bias="0.501" /> | ||
|
||
<TextView | ||
android:id="@+id/textView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:clickable="true" | ||
android:text="@string/moeyuuko" | ||
android:textColor="@drawable/bg_tv_selector" | ||
android:textSize="24sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toStartOf="@+id/scrollView2" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<ScrollView | ||
android:id="@+id/scrollView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="32dp" | ||
android:layout_marginBottom="32dp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.89" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintVertical_bias="0.0"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<Button | ||
android:id="@+id/button" | ||
android:layout_width="160dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center" | ||
android:background="@drawable/bg_bt_selector" | ||
android:text="切换文本" | ||
android:textColor="#FFFFFF" | ||
android:textSize="20sp" /> | ||
|
||
<LinearLayout | ||
android:id="@+id/linearLayout" | ||
android:layout_width="wrap_content" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center" | ||
android:layout_marginStart="1dp" | ||
android:layout_marginLeft="1dp" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginEnd="1dp" | ||
android:layout_marginRight="1dp" | ||
android:orientation="horizontal"> | ||
|
||
<Button | ||
android:id="@+id/button2" | ||
android:layout_width="150dp" | ||
android:layout_height="50dp" | ||
android:text="Activity2" | ||
android:textSize="18sp" /> | ||
|
||
<Button | ||
android:id="@+id/button4" | ||
android:layout_width="150dp" | ||
android:layout_height="50dp" | ||
android:text="Activity3" | ||
android:textSize="18sp" /> | ||
</LinearLayout> | ||
|
||
<Button | ||
android:id="@+id/button7" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:layout_marginTop="5dp" | ||
android:text="活动的信息传递" | ||
android:textSize="18sp" /> | ||
|
||
<Button | ||
android:id="@+id/button9" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:layout_marginTop="5dp" | ||
android:text="ViewPager滑动" | ||
android:textSize="18sp" /> | ||
|
||
<Button | ||
android:id="@+id/button10" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:layout_marginTop="5dp" | ||
android:text="random随机数" | ||
android:textSize="18sp" /> | ||
|
||
<Button | ||
android:id="@+id/button14" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:layout_marginTop="5dp" | ||
android:text="剪刀石头布" | ||
android:textSize="18sp" /> | ||
|
||
<Button | ||
android:id="@+id/button15" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:layout_marginTop="5dp" | ||
android:text="访问摄像头" | ||
android:textSize="18sp" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
</ScrollView> | ||
|
||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.