forked from hzuapps/android-labs-2020
-
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
7 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
students/net1814080903139/src/main/res/layout/activity_alarm.xml
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,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
88
students/net1814080903139/src/main/res/layout/activity_main.xml
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,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> |
7 changes: 7 additions & 0 deletions
7
students/net1814080903139/src/main/res/layout/activity_net1814080903139.xml
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,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> |
6 changes: 6 additions & 0 deletions
6
students/net1814080903139/src/main/res/layout/activity_stopwatch.xml
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,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> |
6 changes: 6 additions & 0 deletions
6
students/net1814080903139/src/main/res/layout/activity_time.xml
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,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> |
6 changes: 6 additions & 0 deletions
6
students/net1814080903139/src/main/res/layout/activity_timer.xml
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,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> |