-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #993 from 1714080902306/master
#4 提交实验四代码
- Loading branch information
Showing
6 changed files
with
235 additions
and
40 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
students/soft1714080902306/ShiYan03/app/src/main/AndroidManifest.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,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="edu.hzuapps.androidlabs"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
|
||
<activity | ||
android:name=".soft1714080902306.Soft1714080902306Activity02" | ||
android:label="购买火车票"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".soft1714080902306.Soft1714080902306Activity01" | ||
android:label="火车订票APP" | ||
android:theme="@style/AppTheme.NoActionBar"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
</application> | ||
|
||
</manifest> |
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
Binary file added
BIN
+36 KB
students/soft1714080902306/ShiYan03/app/src/main/res/drawable/tubiao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 54 additions & 18 deletions
72
...ents/soft1714080902306/ShiYan03/app/src/main/res/layout/soft_1714080902306_activity01.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 |
---|---|---|
@@ -1,22 +1,58 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout 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=".soft1714080902306.Soft1714080902306Activity01" | ||
> | ||
android:orientation="vertical" android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<TextView | ||
android:id="@+id/textview_01" | ||
|
||
<ImageButton | ||
android:id="@+id/imageButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="218dp" | ||
app:srcCompat="@drawable/tubiao" /> | ||
<Button | ||
android:id="@+id/Button_1" | ||
android:layout_width="match_parent" | ||
android:layout_height="60dp" | ||
android:text="购买火车票" | ||
android:textSize="30sp" | ||
android:layout_marginTop="30dp" | ||
/> | ||
<Button | ||
android:id="@+id/Button_2" | ||
android:layout_width="match_parent" | ||
android:layout_height="60dp" | ||
android:text="退票" | ||
android:textSize="30sp" | ||
android:layout_marginTop="30dp" | ||
/> | ||
<Button | ||
android:id="@+id/Button_3" | ||
android:layout_width="match_parent" | ||
android:layout_height="60dp" | ||
android:text="查看已购票信息" | ||
android:textSize="30sp" | ||
android:layout_marginTop="30dp" | ||
/> | ||
<Button | ||
android:id="@+id/Button_4" | ||
android:layout_width="match_parent" | ||
android:layout_height="60dp" | ||
android:text="投诉" | ||
android:textSize="30sp" | ||
android:layout_marginTop="30dp" | ||
/> | ||
<Button | ||
android:id="@+id/Button_5" | ||
android:layout_width="match_parent" | ||
android:layout_height="385dp" | ||
android:clickable="true" | ||
android:drawableTop="@drawable/huochepiao" | ||
android:gravity="center" | ||
android:text="火车票" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.0" | ||
app:layout_constraintStart_toStartOf="parent" | ||
tools:layout_editor_absoluteY="59dp" /> | ||
</android.support.constraint.ConstraintLayout> | ||
android:layout_height="60dp" | ||
android:text="帮助" | ||
android:textSize="30sp" | ||
android:layout_marginTop="30dp" | ||
/> | ||
|
||
|
||
|
||
|
||
|
||
</LinearLayout> |
64 changes: 48 additions & 16 deletions
64
...ents/soft1714080902306/ShiYan03/app/src/main/res/layout/soft_1714080902306_activity02.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 |
---|---|---|
@@ -1,22 +1,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.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=".soft1714080902306.Soft1714080902306Activity02"> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<TextView | ||
android:id="@+id/textView1" | ||
<EditText | ||
android:id="@+id/editText_1" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
tools:layout_editor_absoluteX="50dp" | ||
tools:layout_editor_absoluteY="100dp" | ||
android:text="出发地点:太原 目的地:大同" | ||
/> | ||
|
||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:inputType="textMultiLine" | ||
android:text="出发地点:" | ||
android:layout_marginTop="100dp" | ||
android:textSize="25sp"/> | ||
<EditText | ||
android:id="@+id/editText_2" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:inputType="textMultiLine" | ||
android:text="到达地点:" | ||
android:layout_marginTop="30dp" | ||
android:textSize="25sp"/> | ||
|
||
<EditText | ||
android:id="@+id/editText_3" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:inputType="textMultiLine" | ||
android:text="用户名:" | ||
android:layout_marginTop="30dp" | ||
android:textSize="25sp"/> | ||
|
||
<EditText | ||
android:id="@+id/editText_4" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:inputType="textMultiLine" | ||
android:text="身份证号码:" | ||
android:layout_marginTop="30dp" | ||
android:textSize="25sp"/> | ||
|
||
</android.support.constraint.ConstraintLayout> | ||
<EditText | ||
android:id="@+id/editText_5" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:ems="10" | ||
android:inputType="textMultiLine" | ||
android:text="乘坐人数:" | ||
android:layout_marginTop="30dp" | ||
android:textSize="25sp"/> | ||
</LinearLayout> |
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