Skip to content

Commit

Permalink
hzuapps#3 hzuapps#899 第三次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed May 13, 2018
1 parent b4e4646 commit c6a2d80
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.example.hzu.msoft1614080902146;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class Soft1614080902146 extends AppCompatActivity {

private TextView textView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft1614080902146);

textView=(TextView)findViewById(R.id.text_view);
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Soft1614080902146.this,Soft16140809021462.class);
startActivity(intent);
}
});
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.example.hzu.msoft1614080902146;


import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Soft16140809021462 extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft16140809021462);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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="com.example.hzu.msoft1614080902146.Soft1614080902146">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/timg"
android:id="@+id/text_view"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</android.support.constraint.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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="com.example.hzu.msoft1614080902146.Soft16140809021462">

<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="22sp"
android:text="这是第二个页面"
android:gravity="center"/>

</RelativeLayout>

0 comments on commit c6a2d80

Please sign in to comment.