-
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 #984 from wzq-55552/master
#4 提交实验4代码
- Loading branch information
Showing
11 changed files
with
525 additions
and
14 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
students/soft1714080902133/app/src/main/AndroidManifest.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,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="edu.hzuapps.androidlabs.soft1714080902133"> | ||
|
||
<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=".Soft1714080902133PaymentActivity"></activity> | ||
|
||
<activity android:name=".Soft1714080902133RechargeActivity" /> | ||
|
||
<activity android:name=".Soft1714080902133PerfectInformationActivity" /> | ||
|
||
<activity android:name=".Soft1714080902133HomeActivity" /> | ||
|
||
<activity android:name=".Soft1714080902133UserActivity" /> | ||
|
||
<activity android:name=".Soft1714080902133ForgetPasswordActivity" /> | ||
|
||
<activity android:name=".Soft1714080902133RegisterActivity" /> | ||
|
||
<activity android:name=".Soft1714080902133LoginActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
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
37 changes: 37 additions & 0 deletions
37
...main/java/edu/hzuapps/androidlabs/soft1714080902133/Soft1714080902133PaymentActivity.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,37 @@ | ||
package edu.hzuapps.androidlabs.soft1714080902133; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.ActionBar; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.support.v7.widget.Toolbar; | ||
import android.view.MenuItem; | ||
|
||
public class Soft1714080902133PaymentActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.soft_1714080902133_paymentactivity); | ||
|
||
//界面标题bar | ||
Toolbar toolbar = (Toolbar) findViewById(R.id.payment_toolbar); | ||
setSupportActionBar(toolbar);//获得ToolBar实例 | ||
ActionBar actionBar = getSupportActionBar(); | ||
if (actionBar!=null){ | ||
actionBar.setDisplayHomeAsUpEnabled(true);//菜单,默认图片返回图片 | ||
} | ||
} | ||
|
||
@Override | ||
public boolean onOptionsItemSelected(MenuItem item) { | ||
switch (item.getItemId()){ | ||
case android.R.id.home://点击了返回,结束该活动,返回上一个活动 | ||
Intent intent = new Intent(Soft1714080902133PaymentActivity.this, Soft1714080902133HomeActivity.class); | ||
startActivity(intent); | ||
finish(); | ||
return true; | ||
} | ||
return super.onOptionsItemSelected(item); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...ain/java/edu/hzuapps/androidlabs/soft1714080902133/Soft1714080902133RechargeActivity.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,37 @@ | ||
package edu.hzuapps.androidlabs.soft1714080902133; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.ActionBar; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.support.v7.widget.Toolbar; | ||
import android.view.MenuItem; | ||
|
||
public class Soft1714080902133RechargeActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.soft_1714080902133_rechargeactivity); | ||
//界面标题bar | ||
Toolbar toolbar = (Toolbar) findViewById(R.id.re_toolbar); | ||
setSupportActionBar(toolbar);//获得ToolBar实例 | ||
ActionBar actionBar = getSupportActionBar(); | ||
if (actionBar!=null){ | ||
actionBar.setDisplayHomeAsUpEnabled(true);//菜单,默认图片返回图片 | ||
} | ||
|
||
} | ||
|
||
@Override | ||
public boolean onOptionsItemSelected(MenuItem item) { | ||
switch (item.getItemId()){ | ||
case android.R.id.home://点击了返回,结束该活动,返回上一个活动 | ||
Intent intent = new Intent(Soft1714080902133RechargeActivity.this, Soft1714080902133HomeActivity.class); | ||
startActivity(intent); | ||
finish(); | ||
return true; | ||
} | ||
return super.onOptionsItemSelected(item); | ||
} | ||
} |
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
Binary file modified
BIN
-113 KB
(67%)
students/soft1714080902133/app/src/main/res/drawable/backgound.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions
65
students/soft1714080902133/app/src/main/res/layout/recharge_context.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,65 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@color/white"> | ||
|
||
<TextView | ||
android:layout_marginLeft="40dp" | ||
android:layout_marginTop="10dp" | ||
android:textSize="18sp" | ||
android:id="@+id/re_view01" | ||
android:background="@color/white" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="账户充值"/> | ||
|
||
<RelativeLayout | ||
android:layout_below="@id/re_view01" | ||
android:layout_centerHorizontal="true" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content"> | ||
|
||
|
||
<LinearLayout | ||
android:orientation="horizontal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
> | ||
|
||
<CheckBox | ||
android:layout_margin="10dp" | ||
android:id="@+id/checkBox10" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="10元" /> | ||
|
||
<CheckBox | ||
android:layout_margin="10dp" | ||
android:id="@+id/checkBox100" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="100元" /> | ||
|
||
<CheckBox | ||
android:layout_margin="10dp" | ||
android:id="@+id/checkBox500" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="500元" /> | ||
|
||
<CheckBox | ||
android:layout_margin="10dp" | ||
android:id="@+id/checkBox1000" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="1000元" /> | ||
|
||
</LinearLayout> | ||
|
||
</RelativeLayout> | ||
|
||
|
||
|
||
</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
Oops, something went wrong.