forked from hzuapps/android-labs-2018
-
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
Showing
8 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
20 changes: 18 additions & 2 deletions
20
...ord_Record/main/java/edu/soft1614080902329/password_record/soft1614080902329Activity.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 |
---|---|---|
@@ -1,13 +1,29 @@ | ||
package edu.soft1614080902329.password_record; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class soft1614080902329Activity extends AppCompatActivity{ | ||
|
||
public class soft1614080902329Activity extends AppCompatActivity { | ||
private Button login_buttom = null; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1614080902329); | ||
|
||
login_buttom = findViewById(R.id.login); | ||
login_buttom.setOnClickListener(new MyButtonListener()); | ||
} | ||
|
||
class MyButtonListener implements View.OnClickListener { | ||
public void onClick(View v) { | ||
Intent intent = new Intent(); | ||
intent.setClass(soft1614080902329Activity.this, soft1614080902329RecordActivity.class); | ||
soft1614080902329Activity.this.startActivity(intent); | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...cord/main/java/edu/soft1614080902329/password_record/soft1614080902329RecordActivity.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 edu.soft1614080902329.password_record; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class soft1614080902329RecordActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1614080902329_record); | ||
} | ||
} |
Binary file added
BIN
+2.97 KB
soft1614080902329/Password_Record/main/res/drawable/ic_password_logo.png
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
27 changes: 27 additions & 0 deletions
27
soft1614080902329/Password_Record/main/res/layout/activity_soft1614080902329_record.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,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="edu.soft1614080902329.password_record.soft1614080902329RecordActivity"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
> | ||
|
||
<TextView | ||
android:id="@+id/title_sys" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="跳转成功" | ||
android:textSize="32dp" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="80px" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
</android.support.constraint.ConstraintLayout> |
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,16 @@ | ||
# 第2次实验 | ||
|
||
## 1.实验目标 | ||
* 将图片放入界面中 | ||
* 实现Activity间的跳转 | ||
|
||
## 2.实验步骤 | ||
* 设置TextView节点,将图片导入相应位置 | ||
* 实现OnClickListener接口,复写onClick方法,findViewById获取监听组件,startActivity执行跳转 | ||
|
||
## 3.实验结果 | ||
* 实验截图 | ||
![实验截图](https://github.com/OrangeHap/android-labs-2018/blob/master/soft1614080902329/second_labs.png) | ||
|
||
## 4.实验体会 | ||
* 还好 |
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.