-
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 #1548 from PierceCK/master
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 29 additions & 1 deletion
30
...pp/src/main/java/ezu/hzuapps/androidlabs/soft1707080714328/Soft1707080714328Activity.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,41 @@ | ||
package androidlabs.hzuapps.ezu.soft1707080714328; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Toast; | ||
|
||
public class Soft1707080714328Activity extends AppCompatActivity { | ||
public class Soft1707080714328Activity extends AppCompatActivity implements View.OnClickListener { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.soft_1707080714328_activity); | ||
//初始化方法 | ||
intUI(); | ||
} | ||
|
||
private void intUI() { | ||
findViewById(R.id.ibtn_skip).setOnClickListener(this); | ||
} | ||
|
||
public void btn_zhuce(View view){ | ||
Toast.makeText(getApplicationContext(),"暂时无法注册,请点击右上角跳过",Toast.LENGTH_SHORT).show(); | ||
} | ||
|
||
public void btn_denglu(View view){ | ||
Toast.makeText(getApplicationContext(),"暂时无法登录,请点击右上角跳过",Toast.LENGTH_SHORT).show(); | ||
} | ||
|
||
@Override | ||
public void onClick(View v) { | ||
switch (v.getId()){ | ||
case R.id.ibtn_skip: | ||
Intent intent = new Intent(); | ||
intent.setClass(getApplicationContext(),Soft1707080714328Activity_First.class); | ||
this.startActivity(intent); | ||
break; | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../main/java/ezu/hzuapps/androidlabs/soft1707080714328/Soft1707080714328Activity_First.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 androidlabs.hzuapps.ezu.soft1707080714328; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class Soft1707080714328Activity_First extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.soft_1707080714328_activity__first); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
students/soft1707080714328/app/src/main/res/layout/soft_1707080714328_activity__first.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,18 @@ | ||
<?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="androidlabs.hzuapps.ezu.soft1707080714328.Soft1707080714328Activity_First"> | ||
|
||
<TextView | ||
android:textSize="25dp" | ||
android:text="这是跳过后的界面" | ||
android:textColor="@android:color/holo_red_light" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
</RelativeLayout> |