Skip to content

Commit

Permalink
hzuapps#3 hzuapps#329 提交第三次实验+修改第二次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
qxadc committed Oct 26, 2020
1 parent 675bdad commit 2f39f27
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_sec1814080911130);

final Sec1814080911130Activity thisActivity = this;
Button BtnStart = (Button) findViewById(R.id.button_start);
BtnStart.setOnClickListener(new View.OnClickListener() {
Button BtnPlay = (Button) findViewById(R.id.button_play);
BtnPlay.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity,PlayActivity.class);
Expand Down
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,41 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="match_parent"
tools:context="edu.hzuapps.androidlabs.Sec1814080911130Activity"
android:background="@drawable/background"
android:weightSum="1">
<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=".OptionsActivity"></activity>
<activity android:name=".PlayActivity" />
<activity android:name=".Sec1814080911130Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

<Button
android:id="@+id/button_play"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="开始游戏" />

<Button
android:id="@+id/button_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="选项" />

</LinearLayout>

0 comments on commit 2f39f27

Please sign in to comment.