diff --git a/students/soft1714080902114/app/src/main/AndroidManifest.xml b/students/soft1714080902114/app/src/main/AndroidManifest.xml index 713fd6b02..e53d2f0a0 100644 --- a/students/soft1714080902114/app/src/main/AndroidManifest.xml +++ b/students/soft1714080902114/app/src/main/AndroidManifest.xml @@ -16,6 +16,7 @@ + \ No newline at end of file diff --git a/students/soft1714080902114/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902114/MainActivity.java b/students/soft1714080902114/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902114/MainActivity.java new file mode 100644 index 000000000..8b461b25c --- /dev/null +++ b/students/soft1714080902114/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902114/MainActivity.java @@ -0,0 +1,13 @@ +package edu.hzuapps.androidlabs.soft1714080902114; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } +} diff --git a/students/soft1714080902114/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902114/Soft1714080902114Activity.java b/students/soft1714080902114/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902114/Soft1714080902114Activity.java index 20bcae15d..e3785e6b7 100644 --- a/students/soft1714080902114/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902114/Soft1714080902114Activity.java +++ b/students/soft1714080902114/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902114/Soft1714080902114Activity.java @@ -1,13 +1,25 @@ package edu.hzuapps.androidlabs.soft1714080902114; +import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import android.view.View; +import android.widget.Button; public class Soft1714080902114Activity extends AppCompatActivity { - @Override + protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.soft_1714080902114_activity); + + Button button1 = (Button) findViewById(R.id.button_1); + button1.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(Soft1714080902114Activity.this, MainActivity.class); + startActivity(intent); + } + }); } } diff --git a/students/soft1714080902114/app/src/main/res/drawable/ic_launcher_background.xml b/students/soft1714080902114/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 000000000..0d025f9bf --- /dev/null +++ b/students/soft1714080902114/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/students/soft1714080902114/app/src/main/res/drawable/img.jpg b/students/soft1714080902114/app/src/main/res/drawable/img.jpg new file mode 100644 index 000000000..b3c2a7e54 Binary files /dev/null and b/students/soft1714080902114/app/src/main/res/drawable/img.jpg differ diff --git a/students/soft1714080902114/app/src/main/res/layout/activity_main.xml b/students/soft1714080902114/app/src/main/res/layout/activity_main.xml new file mode 100644 index 000000000..d8f77e2dd --- /dev/null +++ b/students/soft1714080902114/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/students/soft1714080902114/app/src/main/res/layout/soft_1714080902114_activity.xml b/students/soft1714080902114/app/src/main/res/layout/soft_1714080902114_activity.xml index 98a9bfd88..32360a10d 100644 --- a/students/soft1714080902114/app/src/main/res/layout/soft_1714080902114_activity.xml +++ b/students/soft1714080902114/app/src/main/res/layout/soft_1714080902114_activity.xml @@ -15,4 +15,12 @@ app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" /> +