-
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 #972 from 1714080902120/master
#4 第四次实验
- Loading branch information
Showing
17 changed files
with
106 additions
and
88 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
students/soft1714080902120/app/src/main/AndroidManifest.xml
This file was deleted.
Oops, something went wrong.
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
64 changes: 0 additions & 64 deletions
64
...c/main/java/edu/hzuapps/androidlabs/soft1714080902120/Soft1714080902120HistoryPeople.java
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
.../java/edu/hzuapps/androidlabs/soft1714080902120/Soft1714080902120InitialPageActivity.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,53 @@ | ||
package edu.hzuapps.androidlabs.soft1714080902120; | ||
|
||
import android.content.Intent; | ||
import android.os.CountDownTimer; | ||
import android.os.Handler; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.widget.TextView; | ||
|
||
public class Soft1714080902120InitialPageActivity extends AppCompatActivity { | ||
private MyCountDownTimer mc; | ||
private TextView tv; | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_initial); | ||
|
||
tv = (TextView) findViewById(R.id.InitialPage_View); | ||
mc = new MyCountDownTimer(5000, 1000); | ||
mc.start(); | ||
handler.postDelayed(new Runnable() { | ||
@Override | ||
public void run() { | ||
//这里实现初始页面跳转到主页面 | ||
|
||
Intent intent=new Intent(Soft1714080902120InitialPageActivity.this,Soft1714080902120NameListActivity.class); | ||
startActivity(intent); | ||
} | ||
}, 5000); | ||
} | ||
private Handler handler=new Handler(); | ||
|
||
// 继承 CountDownTimer 防范重写; 父类的方法 onTick() 、 onFinish() | ||
|
||
class MyCountDownTimer extends CountDownTimer { | ||
|
||
// @param millisInFuture表示以毫秒为单位 倒计时的总数 | ||
// @param countDownInterval表示 间隔 多少微秒 调用一次 onTick 方法 | ||
|
||
public MyCountDownTimer(long millisInFuture, long countDownInterval) { | ||
super(millisInFuture, countDownInterval); | ||
} | ||
public void onFinish() { | ||
tv.setText(getString(R.string.tz)); | ||
} | ||
public void onTick(long millisUntilFinished) { | ||
tv.setText(getString(R.string.LostingTime) + millisUntilFinished / 1000 + ")"); | ||
} | ||
} | ||
|
||
|
||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
students/soft1714080902120/app/src/main/res/drawable/repeat_bg.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,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:src="@drawable/zuiwo" android:tileMode="repeat" /> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
21 changes: 21 additions & 0 deletions
21
students/soft1714080902120/app/src/main/res/layout/activity_initial.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,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@drawable/kawayi3" | ||
tools:context="edu.hzuapps.androidlabs.soft1714080902120.Soft1714080902120InitialPageActivity"> | ||
|
||
|
||
<TextView | ||
android:id="@+id/InitialPage_View" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="初始页面" | ||
android:textSize="70px" | ||
android:textColor="@color/colorPrimaryDark" | ||
android:layout_alignParentStart="true" | ||
android:layout_alignParentLeft="true" | ||
android:layout_marginStart="0dp" | ||
android:layout_marginLeft="0dp" /> | ||
</RelativeLayout> |
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
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
18 changes: 18 additions & 0 deletions
18
students/soft1714080902120/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 |
---|---|---|
@@ -1,3 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<resources> | ||
<string name="app_name">1714080902120</string> | ||
<string name="bai_name">白起</string> | ||
<string name="bai_time">?—公元前257年</string> | ||
<string name="bai_reputation">中国战国时代军事家、秦国名将,兵家代表人物,《千字文》将他与廉颇、李牧、王翦并称为战国四大名将,位列战国四大名将之首。</string> | ||
<string name="zhao_name">赵奢</string> | ||
<string name="zhao_time">生卒年不详</string> | ||
<string name="zhao_reputation">战国后期赵国名将,战国时代东方六国八名将之一,简曰马氏,赵武灵王之子。 主要生活在赵武灵王(前324—前299年)到赵孝成王(前265—前245年)时期,享年约60余岁。</string> | ||
<string name="meng_name">蒙恬</string> | ||
<string name="meng_time">约公元前259年—公元前210年</string> | ||
<string name="meng_reputation">公元前221年,蒙恬被封为将军,攻破齐国,拜为内史 ,深得秦始皇的尊宠,当时与其弟蒙毅号称“忠信”。 秦统一后,蒙恬率三十万大军北击匈奴。 恬曾驻守九郡十余年,威震匈奴,被誉为“中华第一勇士”。</string> | ||
<string name="yue_name">乐毅</string> | ||
<string name="yue_time">生卒年不详</string> | ||
<string name="yue_reputation">战国后期杰出的军事家,魏将乐羊后裔,拜燕上将军,受封昌国君,辅佐燕昭王振兴燕国。 公元前284年,他统帅燕国等五国联军攻打齐国,连下70余城,创造了中国古代战争史上以弱胜强的著名战例,报了强齐伐燕之仇。</string> | ||
<string name="lian_name">廉颇</string> | ||
<string name="lian_time">生卒年不详</string> | ||
<string name="lian_reputation">嬴姓,廉氏,名颇,战国末期赵国的名将,与白起、王翦、李牧并称“战国四大名将”。唐德宗时将廉颇等历史上六十四位武功卓著的名将,供奉于武成王庙内,被称为武成王庙六十四将。宋徽宗时追尊廉颇为临城伯,位列宋武庙七十二将之一。</string> | ||
<string name="tz">正在跳转</string> | ||
<string name="LostingTime">倒计时(</string> | ||
</resources> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.