Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

#3 #16 第3次实验 #519

Merged
merged 2 commits into from
Oct 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions students/net1814080903225/Net1814080903225_Clock.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_centerHorizontal="true"
android:background="#ff0000"
android:visibility="visible"
tools:context=".MainActivity">

<Button
android:id="@+id/but3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="钟表模式"
android:textSize="30dp"
android:layout_below="@id/but1"
android:layout_centerHorizontal="true"
android:onClick="send"

/>

<TextView
android:id="@+id/t1"
android:layout_width="wrap_content"
android:layout_height="239dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="200dp"
android:gravity="center"
android:text="Hello World!"

android:textSize="50dp"
tools:layout_editor_absoluteX="211dp"
tools:layout_editor_absoluteY="689dp" />

<Button
android:id="@+id/but1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="70dp"
android:onClick="record"
android:text="北京时间"
android:textSize="30dp"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="85dp" />

<Button
android:id="@+id/but2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/but1"
android:onClick="recordN"
android:text="纽约时间"
android:textSize="30dp" />

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/clock"
android:layout_below="@id/t1"
/>

</RelativeLayout>
Binary file added students/net1814080903225/res/drawable/clock.jpg
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
Expand Up @@ -89,4 +89,4 @@ public void run() {
}
}
}
}
}