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
1 parent
418d5ca
commit 16cfea3
Showing
13 changed files
with
364 additions
and
4 deletions.
There are no files selected for viewing
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
42 changes: 42 additions & 0 deletions
42
...ject/app/src/main/java/com/example/gdy/soft1714080902318touhouproject/SecondActivity.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,42 @@ | ||
package com.example.gdy.soft1714080902318touhouproject; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
import com.example.gdy.touhouproject.R; | ||
|
||
public class SecondActivity extends AppCompatActivity { | ||
|
||
private TextView textView, textView1; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_second); | ||
|
||
textView = (TextView)findViewById(R.id.button1); | ||
|
||
textView.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(); | ||
intent.setClass(SecondActivity.this, FourthActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
|
||
textView1 = (TextView) findViewById(R.id.button2); | ||
|
||
textView1.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(); | ||
intent.setClass(SecondActivity.this, ThirdActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...in/java/com/example/gdy/soft1714080902318touhouproject/Soft1714080902318MainActivity.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,34 @@ | ||
package com.example.gdy.soft1714080902318touhouproject; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
import com.example.gdy.touhouproject.R; | ||
|
||
public class Soft1714080902318MainActivity extends AppCompatActivity { | ||
private TextView textView; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1714080902318_main); | ||
|
||
textView = (TextView)findViewById(R.id.button1); | ||
|
||
textView.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(); | ||
intent.setClass(Soft1714080902318MainActivity.this, SecondActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
|
||
|
||
|
||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...oject/app/src/main/java/com/example/gdy/soft1714080902318touhouproject/ThirdActivity.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 com.example.gdy.soft1714080902318touhouproject; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
import com.example.gdy.touhouproject.R; | ||
|
||
public class ThirdActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_third); | ||
} | ||
} |
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,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.gdy.touhouproject"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity android:name=".Soft1714080902318MainActivity" /> | ||
<activity android:name=".SecondActivity" /> | ||
<activity android:name=".ThirdActivity" /> | ||
<activity android:name=".FourthActivity"></activity> | ||
</application> | ||
|
||
</manifest> |
13 changes: 13 additions & 0 deletions
13
soft1714080902318/app/src/main/java/com/example/gdy/touhouproject/FourthActivity.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,13 @@ | ||
package com.example.gdy.touhouproject; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class FourthActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_fourth); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
soft1714080902318/app/src/main/java/com/example/gdy/touhouproject/SecondActivity.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,40 @@ | ||
package com.example.gdy.touhouproject; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
public class SecondActivity extends AppCompatActivity { | ||
|
||
private TextView textView, textView1; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_second); | ||
|
||
textView = (TextView)findViewById(R.id.button1); | ||
|
||
textView.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(); | ||
intent.setClass(SecondActivity.this, FourthActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
|
||
textView1 = (TextView) findViewById(R.id.button2); | ||
|
||
textView1.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(); | ||
intent.setClass(SecondActivity.this, ThirdActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...902318/app/src/main/java/com/example/gdy/touhouproject/Soft1714080902318MainActivity.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,32 @@ | ||
package com.example.gdy.touhouproject; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.TextView; | ||
|
||
public class Soft1714080902318MainActivity extends AppCompatActivity { | ||
private TextView textView; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1714080902318_main); | ||
|
||
textView = (TextView)findViewById(R.id.button1); | ||
|
||
textView.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(); | ||
intent.setClass(Soft1714080902318MainActivity.this, SecondActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
|
||
|
||
|
||
|
||
} |
13 changes: 13 additions & 0 deletions
13
soft1714080902318/app/src/main/java/com/example/gdy/touhouproject/ThirdActivity.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,13 @@ | ||
package com.example.gdy.touhouproject; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class ThirdActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_third); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
soft1714080902318/app/src/main/res/layout/activity_fourth.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,49 @@ | ||
<?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:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
tools:context="com.example.gdy.touhouproject.FourthActivity"> | ||
|
||
<EditText | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:inputType="textPersonName" | ||
android:text="角色的姓名:" | ||
android:ems="10" | ||
android:id="@+id/editText2" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="71dp" /> | ||
|
||
<EditText | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:inputType="textPersonName" | ||
android:text="角色的能力:" | ||
android:ems="10" | ||
android:id="@+id/editText3" | ||
android:layout_below="@+id/editText2" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="37dp" /> | ||
|
||
<Button | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="上传新角色" | ||
android:id="@+id/button3" | ||
android:layout_centerVertical="true" | ||
android:layout_centerHorizontal="true" /> | ||
|
||
<TextView | ||
android:id="@+id/okuu" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:drawableTop="@drawable/koishi1" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" /> | ||
</RelativeLayout> |
52 changes: 52 additions & 0 deletions
52
soft1714080902318/app/src/main/res/layout/activity_second.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,52 @@ | ||
<?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:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
android:background="@drawable/tenshi" | ||
tools:context="com.example.gdy.touhouproject.SecondActivity"> | ||
|
||
<Button | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="新建角色" | ||
android:id="@+id/button1" | ||
android:layout_below="@+id/textView3" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="68dp" /> | ||
|
||
|
||
<Button | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="查看已拥有的角色" | ||
android:id="@+id/button2" | ||
android:layout_marginBottom="101dp" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="?android:attr/textAppearanceLarge" | ||
android:text="这里是沉浸于幻想之中的乐园" | ||
android:id="@+id/textView2" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="?android:attr/textAppearanceLarge" | ||
android:text="(请选择要执行的操作:)" | ||
android:id="@+id/textView3" | ||
android:textColor="@color/colorAccent" | ||
android:layout_below="@+id/textView2" | ||
android:layout_alignRight="@+id/textView2" | ||
android:layout_alignEnd="@+id/textView2" | ||
android:layout_marginTop="50dp" /> | ||
</RelativeLayout> |
34 changes: 34 additions & 0 deletions
34
soft1714080902318/app/src/main/res/layout/activity_soft1714080902318_main.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,34 @@ | ||
<?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:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
android:background="@drawable/tenshi1" | ||
tools:context="com.example.gdy.touhouproject.Soft1714080902318MainActivity"> | ||
|
||
<TextView | ||
android:id="@+id/okuu" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:drawableTop="@drawable/utsuho" | ||
android:text="欢迎来到东方求闻史记" | ||
android:layout_alignParentTop="true" | ||
android:layout_alignParentRight="true" | ||
android:layout_alignParentEnd="true" /> | ||
|
||
<Button | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="点此开始" | ||
android:id="@+id/button1" | ||
android:layout_marginTop="44dp" | ||
android:layout_below="@+id/okuu" | ||
android:layout_alignLeft="@+id/okuu" | ||
android:layout_alignStart="@+id/okuu" | ||
android:layout_alignRight="@+id/okuu" | ||
android:layout_alignEnd="@+id/okuu" /> | ||
</RelativeLayout> |
19 changes: 19 additions & 0 deletions
19
soft1714080902318/app/src/main/res/layout/activity_third.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,19 @@ | ||
<?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:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
tools:context="com.example.gdy.touhouproject.ThirdActivity"> | ||
|
||
<ListView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/listView" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="118dp" /> | ||
</RelativeLayout> |