This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
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 #411 from Chanlex/master
- Loading branch information
Showing
7 changed files
with
54 additions
and
99 deletions.
There are no files selected for viewing
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
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,4 +1,37 @@ | ||
package edu.hzuapps.androidlabs.net1814080903226 | ||
public class Net1814080903226Activity{ | ||
package edu.hzuapps.androidlabs; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class Net1814080903226MainViewActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.net_1814080903226_mainview_activity); | ||
|
||
final Net1814080903226MainViewActivity thisActivity = this; | ||
Button button = (Button) findViewById(R.id.button); | ||
button.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(thisActivity,Net1814080903226MyViewActivity.class); | ||
thisActivity.startActivity(intent); | ||
} | ||
}); | ||
|
||
Button button2 = (Button) findViewById(R.id.button2); | ||
button2.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
Intent intent = new Intent(thisActivity,Net1814080903226MessageActivity.class); | ||
thisActivity.startActivity(intent); | ||
} | ||
}); | ||
|
||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
students/net1814080903226/Net1814080903226MainviewActivity.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
students/net1814080903226/Net1814080903226MessageActivity.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,14 @@ | ||
package edu.hzuapps.androidlabs; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.os.Bundle; | ||
|
||
public class Net1814080903226MessageActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.net_1814080903226_message_activity); | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
students/net1814080903226/Net1814080903226MessageViewActivity.java
This file was deleted.
Oops, something went wrong.
21 changes: 2 additions & 19 deletions
21
students/net1814080903226/Net1814080903226MyViewActivity.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,31 +1,14 @@ | ||
package edu.hzuapps.androidlabs; | ||
|
||
import android.os.Bundle; | ||
|
||
import com.google.android.material.floatingactionbutton.FloatingActionButton; | ||
import com.google.android.material.snackbar.Snackbar; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.appcompat.widget.Toolbar; | ||
|
||
import android.view.View; | ||
import android.os.Bundle; | ||
|
||
public class Net1814080903226MyViewActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_net1814080903226_my_view); | ||
Toolbar toolbar = findViewById(R.id.toolbar); | ||
setSupportActionBar(toolbar); | ||
|
||
FloatingActionButton fab = 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(); | ||
} | ||
}); | ||
setContentView(R.layout.net_1814080903226_myview_activity); | ||
} | ||
} |
Binary file not shown.