forked from hzuapps/android-labs-2019
-
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
8 changed files
with
190 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.../src/main/java/edu/hzuapps/androidlabs/soft1714080902306/Soft1714080902306Activity01.java
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,28 @@ | ||
package edu.hzuapps.androidlabs.soft1714080902306; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
import android.widget.Toast; | ||
|
||
import edu.hzuapps.androidlabs.R; | ||
|
||
public class Soft1714080902306Activity01 extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.soft_1714080902306_activity01); | ||
|
||
TextView btnOpen = (TextView) findViewById(R.id.textview_01); | ||
btnOpen.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
startActivity(new Intent(Soft1714080902306Activity01.this,Soft1714080902306Activity02.class)); | ||
} | ||
}); | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
.../src/main/java/edu/hzuapps/androidlabs/soft1714080902306/Soft1714080902306Activity02.java
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,15 @@ | ||
package edu.hzuapps.androidlabs.soft1714080902306; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
import edu.hzuapps.androidlabs.R; | ||
|
||
public class Soft1714080902306Activity02 extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.soft_1714080902306_activity02); | ||
} | ||
} |
Binary file added
BIN
+27.9 KB
students/soft1714080902306/ShiYan03/app/src/main/res/drawable/huochepiao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
...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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?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.Soft1714080902306Activity01" | ||
> | ||
|
||
<TextView | ||
android:id="@+id/textview_01" | ||
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> |
22 changes: 22 additions & 0 deletions
22
...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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?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"> | ||
|
||
<TextView | ||
android:id="@+id/textView1" | ||
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.support.constraint.ConstraintLayout> |
6 changes: 6 additions & 0 deletions
6
students/soft1714080902306/ShiYan03/app/src/main/res/values/colors.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"?> | ||
<resources> | ||
<color name="colorPrimary">#008577</color> | ||
<color name="colorPrimaryDark">#00574B</color> | ||
<color name="colorAccent">#D81B60</color> | ||
</resources> |
77 changes: 77 additions & 0 deletions
77
students/soft1714080902306/ShiYan03/app/src/main/res/values/strings.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,77 @@ | ||
<resources> | ||
<string name="app_name">ShiYan03</string> | ||
<string name="title_activity_soft171408090230602">Settings</string> | ||
|
||
<!-- Strings related to Settings --> | ||
|
||
<!-- Example General settings --> | ||
<string name="pref_header_general">General</string> | ||
|
||
<string name="pref_title_social_recommendations">Enable social recommendations</string> | ||
<string name="pref_description_social_recommendations">Recommendations for people to contact | ||
based on your message history | ||
</string> | ||
|
||
<string name="pref_title_display_name">Display name</string> | ||
<string name="pref_default_display_name">John Smith</string> | ||
|
||
<string name="pref_title_add_friends_to_messages">Add friends to messages</string> | ||
<string-array name="pref_example_list_titles"> | ||
<item>Always</item> | ||
<item>When possible</item> | ||
<item>Never</item> | ||
</string-array> | ||
<string-array name="pref_example_list_values"> | ||
<item>1</item> | ||
<item>0</item> | ||
<item>-1</item> | ||
</string-array> | ||
|
||
<!-- Example settings for Data & Sync --> | ||
<string name="pref_header_data_sync">Data & sync</string> | ||
|
||
<string name="pref_title_sync_frequency">Sync frequency</string> | ||
<string-array name="pref_sync_frequency_titles"> | ||
<item>15 minutes</item> | ||
<item>30 minutes</item> | ||
<item>1 hour</item> | ||
<item>3 hours</item> | ||
<item>6 hours</item> | ||
<item>Never</item> | ||
</string-array> | ||
<string-array name="pref_sync_frequency_values"> | ||
<item>15</item> | ||
<item>30</item> | ||
<item>60</item> | ||
<item>180</item> | ||
<item>360</item> | ||
<item>-1</item> | ||
</string-array> | ||
|
||
<string-array name="list_preference_entries"> | ||
<item>Entry 1</item> | ||
<item>Entry 2</item> | ||
<item>Entry 3</item> | ||
</string-array> | ||
|
||
<string-array name="list_preference_entry_values"> | ||
<item>1</item> | ||
<item>2</item> | ||
<item>3</item> | ||
</string-array> | ||
|
||
<string-array name="multi_select_list_preference_default_value" /> | ||
|
||
<string name="pref_title_system_sync_settings">System sync settings</string> | ||
|
||
<!-- Example settings for Notifications --> | ||
<string name="pref_header_notifications">Notifications</string> | ||
|
||
<string name="pref_title_new_message_notifications">New message notifications</string> | ||
|
||
<string name="pref_title_ringtone">Ringtone</string> | ||
<string name="pref_ringtone_silent">Silent</string> | ||
|
||
<string name="pref_title_vibrate">Vibrate</string> | ||
<string name="title_activity_soft171408090230601">Soft1714080902306Activity01</string> | ||
</resources> |
20 changes: 20 additions & 0 deletions
20
students/soft1714080902306/ShiYan03/app/src/main/res/values/styles.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,20 @@ | ||
<resources> | ||
|
||
<!-- Base application theme. --> | ||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | ||
<!-- Customize your theme here. --> | ||
<item name="colorPrimary">@color/colorPrimary</item> | ||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
<item name="colorAccent">@color/colorAccent</item> | ||
</style> | ||
|
||
<style name="AppTheme.NoActionBar"> | ||
<item name="windowActionBar">false</item> | ||
<item name="windowNoTitle">true</item> | ||
</style> | ||
|
||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /> | ||
|
||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> | ||
|
||
</resources> |