Skip to content

Commit

Permalink
Merge pull request #972 from 1714080902120/master
Browse files Browse the repository at this point in the history
#4 第四次实验
  • Loading branch information
zengsn authored Mar 26, 2019
2 parents ad28861 + bc4c880 commit 537f4fa
Show file tree
Hide file tree
Showing 17 changed files with 106 additions and 88 deletions.
22 changes: 0 additions & 22 deletions students/soft1714080902120/app/src/main/AndroidManifest.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import android.widget.ImageView;
import android.widget.TextView;

import org.w3c.dom.Text;


public class Soft1714080902120DetailActivity extends AppCompatActivity {

Expand Down

This file was deleted.

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.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/qianse"
tools:context="edu.hzuapps.androidlabs.soft1714080902120.Soft1714080902120DetailActivity">


Expand All @@ -18,6 +19,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Text"
android:textSize="70px"
android:textColor="@color/colorPrimaryDark"
android:id="@+id/HistoryPeople_lvde_textView"
android:layout_below="@+id/HistoryPeople_large_imageView"
android:layout_centerHorizontal="true"
Expand All @@ -27,6 +30,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Text"
android:textSize="60px"
android:textColor="@color/colorPrimaryDark"
android:id="@+id/HistoryPeople_repu_textView"
android:layout_below="@+id/HistoryPeople_lvde_textView"
android:layout_centerHorizontal="true"
Expand Down
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>
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/zhanguo1"
tools:context="edu.hzuapps.androidlabs.soft1714080902120.Soft1714080902120NameListActivity">


<ListView
android:id="@+id/HistoryPeople_listView"
android:layout_width="wrap_content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="match_parent">

<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:id="@+id/HistoryPeople_small_imageView" />
<TextView
android:backgroundTintMode="screen"
android:textSize="70px"
android:textColor="@color/colorPrimaryDark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
Expand Down
18 changes: 18 additions & 0 deletions students/soft1714080902120/app/src/main/res/values/strings.xml
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.
Binary file added students/soft1714080902120/欢迎界面.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 537f4fa

Please sign in to comment.