diff --git a/soft1614080902107/app/src/main/AndroidManifest.xml b/soft1614080902107/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..b08ee9248 --- /dev/null +++ b/soft1614080902107/app/src/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/secondActivity.java b/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/secondActivity.java new file mode 100644 index 000000000..5d1645504 --- /dev/null +++ b/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/secondActivity.java @@ -0,0 +1,29 @@ +package com.example.jerry.soft1614080902107; + +import android.os.Bundle; +import android.support.design.widget.FloatingActionButton; +import android.support.design.widget.Snackbar; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.view.View; + +public class secondActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_second); + Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); + fab.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) + .setAction("Action", null).show(); + } + }); + } + +} diff --git a/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/soft1614080902107MainActivity.java b/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/soft1614080902107MainActivity.java new file mode 100644 index 000000000..237859965 --- /dev/null +++ b/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/soft1614080902107MainActivity.java @@ -0,0 +1,28 @@ +package com.example.jerry.soft1614080902107; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.view.Window; +import android.view.WindowManager; +import android.widget.Button; + +public class soft1614080902107MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + this.requestWindowFeature(Window.FEATURE_NO_TITLE); + this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); + setContentView(R.layout.activity_soft1614080902107_main); + Button button1=(Button)findViewById(R.id.b1); + button1.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent(soft1614080902107MainActivity.this,secondActivity.class); + startActivity(intent); + } + }); + } +} diff --git a/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/soft1614080902107SecondActivity.java b/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/soft1614080902107SecondActivity.java new file mode 100644 index 000000000..0db1a39ba --- /dev/null +++ b/soft1614080902107/app/src/main/java/com/example/jerry/soft1614080902107/soft1614080902107SecondActivity.java @@ -0,0 +1,5 @@ +package com.example.jerry.soft1614080902107; + +public class soft1614080902107SecondActivity { + +} diff --git a/soft1614080902107/app/src/main/res/drawable/pi.jpg b/soft1614080902107/app/src/main/res/drawable/pi.jpg new file mode 100644 index 000000000..96717402e Binary files /dev/null and b/soft1614080902107/app/src/main/res/drawable/pi.jpg differ diff --git a/soft1614080902107/app/src/main/res/drawable/timg.jpg b/soft1614080902107/app/src/main/res/drawable/timg.jpg new file mode 100644 index 000000000..2b43a7e2f Binary files /dev/null and b/soft1614080902107/app/src/main/res/drawable/timg.jpg differ diff --git a/soft1614080902107/app/src/main/res/layout/activity_second.xml b/soft1614080902107/app/src/main/res/layout/activity_second.xml new file mode 100644 index 000000000..1f330b848 --- /dev/null +++ b/soft1614080902107/app/src/main/res/layout/activity_second.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/soft1614080902107/app/src/main/res/layout/activity_soft1614080902107_main.xml b/soft1614080902107/app/src/main/res/layout/activity_soft1614080902107_main.xml new file mode 100644 index 000000000..79f327d18 --- /dev/null +++ b/soft1614080902107/app/src/main/res/layout/activity_soft1614080902107_main.xml @@ -0,0 +1,25 @@ + + + + +