Skip to content

Commit

Permalink
hzuapps#3 hzuapps#420 第三次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
BBsan13 committed Oct 15, 2020
1 parent 86034f7 commit e46fcb3
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">

</LinearLayout>
88 changes: 88 additions & 0 deletions students/net1814080903139/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?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">


<TabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">


<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">


<!-- TabWidget组件id值不可变-->
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</TabWidget>


<!-- FrameLayout布局,id值不可变-->
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@android:id/tabs">


<!-- 第一个tab的布局 -->
<LinearLayout
android:id="@+id/tabTime"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" >

</LinearLayout>


<!-- 第二个tab的布局 -->
<LinearLayout
android:id="@+id/tabAlarm"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" >

</LinearLayout>

<!-- 第三个tab的布局 -->
<LinearLayout
android:id="@+id/tabTimer"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" >

</LinearLayout>

<!-- 第四个tab的布局 -->
<LinearLayout
android:id="@+id/tabStopWatch"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" >

</LinearLayout>

</FrameLayout>
</LinearLayout>
</TabHost>

<ImageView
android:layout_width="match_content"
android:layout_height="wrap_content"
android:src="@drawable/clock"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="116dp"
tools:layout_editor_absoluteY="222dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">


</LinearLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">

</LinearLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">

</LinearLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">

</LinearLayout>

0 comments on commit e46fcb3

Please sign in to comment.