forked from hzuapps/android-labs-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="edu.hzuapps.androids"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity | ||
android:name=".TimeActivity" | ||
android:parentActivityName=".Net1814080903139Activity"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value=".Net1814080903139Activity"></meta-data> | ||
</activity> | ||
<activity | ||
android:name=".AlarmActivity" | ||
android:parentActivityName=".Net1814080903139Activity"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value=".Net1814080903139Activity"></meta-data> | ||
</activity> | ||
<activity | ||
android:name=".TimerActivity" | ||
android:parentActivityName=".Net1814080903139Activity"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value=".Net1814080903139Activity"></meta-data> | ||
</activity> | ||
<activity | ||
android:name=".StopWatchActivity" | ||
android:parentActivityName=".Net1814080903139Activity"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value=".Net1814080903139Activity" /> | ||
</activity> | ||
|
||
</application> | ||
|
||
</manifest> |
12 changes: 12 additions & 0 deletions
12
students/net1814080903139/src/main/java/edu/hzuapps/androids/AlarmActivity.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,12 @@ | ||
package edu.hzuapps.androids; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
public class AlarmActivity extends AppCompatActivity { | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_alarm); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
students/net1814080903139/src/main/java/edu/hzuapps/androids/MainActivity.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.androids; | ||
|
||
import androidx.appcompat.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); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
students/net1814080903139/src/main/java/edu/hzuapps/androids/Net1814080903139Activity.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,47 @@ | ||
package edu.hzuapps.androids; | ||
|
||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class Net1814080903139Activity extends AppCompatActivity { | ||
private Net1814080903139Activity myThis; | ||
protected void onCreate(Bundle savedInstanceState){ | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_net1814080903139); | ||
myThis=this; | ||
Button alarmButton = findViewById(R.id.AlarmButton), | ||
timerButton=findViewById(R.id.TimerButton), | ||
timeButton = findViewById(R.id.TimeButton), | ||
stopwatchButton=findViewById(R.id.StopWatchButton); | ||
timeButton.setOnClickListener(new View.OnClickListener(){ | ||
public void onClick(View view){ | ||
Intent timeIntent=new Intent(myThis,TimeActivity.class); | ||
startActivity(timeIntent); | ||
} | ||
}); | ||
alarmButton.setOnClickListener(new View.OnClickListener(){ | ||
public void onClick(View view){ | ||
Intent alarmIntent=new Intent(myThis,AlarmActivity.class); | ||
startActivity(alarmIntent); | ||
} | ||
}); | ||
timerButton.setOnClickListener(new View.OnClickListener(){ | ||
public void onClick(View view){ | ||
Intent timerIntent=new Intent(myThis,TimerActivity.class); | ||
startActivity(timerIntent); | ||
} | ||
}); | ||
stopwatchButton.setOnClickListener(new View.OnClickListener(){ | ||
public void onClick(View view){ | ||
Intent stopwatchIntent=new Intent(myThis,StopWatchActivity.class); | ||
startActivity(stopwatchIntent); | ||
} | ||
}); | ||
|
||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
students/net1814080903139/src/main/java/edu/hzuapps/androids/StopWatchActivity.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,12 @@ | ||
package edu.hzuapps.androids; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
public class StopWatchActivity extends AppCompatActivity { | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_stopwatch); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
students/net1814080903139/src/main/java/edu/hzuapps/androids/TimeActivity.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,12 @@ | ||
package edu.hzuapps.androids; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
public class TimeActivity extends AppCompatActivity { | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_time); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
students/net1814080903139/src/main/java/edu/hzuapps/androids/TimerActivity.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,12 @@ | ||
package edu.hzuapps.androids; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
public class TimerActivity extends AppCompatActivity { | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_timer); | ||
} | ||
} |