-
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
30 changed files
with
577 additions
and
280 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
28 changes: 28 additions & 0 deletions
28
app/src/main/java/com/example/babycare/AddBabyActivity.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,28 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class AddBabyActivity extends AppCompatActivity { | ||
public Button button; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_add_baby); | ||
|
||
button = (Button) findViewById(R.id.btn_addbaby_done); | ||
|
||
button.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v){ | ||
Intent intent = new Intent(AddBabyActivity.this,VaccinationActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
app/src/main/java/com/example/babycare/DashboardActivity.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,49 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.cardview.widget.CardView; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
|
||
public class DashboardActivity extends AppCompatActivity implements View.OnClickListener { | ||
public CardView card1,card2,card3; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_dashboard); | ||
|
||
card1 = (CardView) findViewById(R.id.card_height); | ||
card2 = (CardView) findViewById(R.id.card_weight); | ||
card3 = (CardView) findViewById(R.id.card_vaccine); | ||
|
||
card1.setOnClickListener(this); | ||
card2.setOnClickListener(this); | ||
card3.setOnClickListener(this); | ||
} | ||
|
||
@Override | ||
public void onClick(View view) { | ||
Intent intent; | ||
|
||
switch (view.getId()){ | ||
case R.id.card_height: | ||
intent = new Intent(DashboardActivity.this,HeightTrackerActivity.class); | ||
startActivity(intent); | ||
break; | ||
|
||
case R.id.card_weight: | ||
intent = new Intent(DashboardActivity.this,WeightTrackerActivity.class); | ||
startActivity(intent); | ||
break; | ||
|
||
case R.id.card_vaccine: | ||
intent = new Intent(DashboardActivity.this,VaccinationTrackerActivity.class); | ||
startActivity(intent); | ||
break; | ||
} | ||
|
||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/example/babycare/FirstPageActivity.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,38 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View.OnClickListener; | ||
import android.widget.Button; | ||
import android.content.Intent; | ||
import android.view.View; | ||
|
||
public class FirstPageActivity extends AppCompatActivity { | ||
public Button button1,button2; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_first_page); | ||
|
||
button1 = (Button) findViewById(R.id.btn_signin); | ||
|
||
button1.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v1){ | ||
Intent intent1 = new Intent(FirstPageActivity.this,AddBabyActivity.class); | ||
startActivity(intent1); | ||
} | ||
}); | ||
|
||
button2 = (Button) findViewById(R.id.btn_login); | ||
|
||
button2.setOnClickListener(new View.OnClickListener(){ | ||
@Override | ||
public void onClick(View v2){ | ||
Intent intent2 = new Intent(FirstPageActivity.this,DashboardActivity.class); | ||
startActivity(intent2); | ||
} | ||
}); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/example/babycare/HeightTrackerActivity.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,27 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class HeightTrackerActivity extends AppCompatActivity { | ||
public Button button; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_height_tracker); | ||
|
||
button = (Button)findViewById(R.id.btn_height_back); | ||
button.setOnClickListener(new View.OnClickListener(){ | ||
@Override | ||
public void onClick(View v){ | ||
Intent intent = new Intent(HeightTrackerActivity.this,DashboardActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
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,14 +1,28 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.os.Bundle; | ||
import android.widget.Button; | ||
import android.content.Intent; | ||
import android.view.View; | ||
|
||
public class MainActivity extends AppCompatActivity { | ||
|
||
public Button button; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
|
||
button = (Button) findViewById(R.id.btn_start); | ||
|
||
button.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v){ | ||
Intent intent = new Intent( MainActivity.this,FirstPageActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
app/src/main/java/com/example/babycare/VaccinationActivity.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,26 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class VaccinationActivity extends AppCompatActivity { | ||
public Button button; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_vaccination); | ||
|
||
button = (Button)findViewById(R.id.btn_firstVaccineDone); | ||
button.setOnClickListener(new View.OnClickListener(){ | ||
@Override | ||
public void onClick(View v){ | ||
Intent intent = new Intent(VaccinationActivity.this,DashboardActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/example/babycare/VaccinationTrackerActivity.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,27 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class VaccinationTrackerActivity extends AppCompatActivity { | ||
public Button button; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_vaccination_tracker); | ||
|
||
button = (Button)findViewById(R.id.btn_vaccine_back); | ||
button.setOnClickListener(new View.OnClickListener(){ | ||
@Override | ||
public void onClick(View v){ | ||
Intent intent = new Intent(VaccinationTrackerActivity.this,DashboardActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/example/babycare/WeightTrackerActivity.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,27 @@ | ||
package com.example.babycare; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class WeightTrackerActivity extends AppCompatActivity { | ||
public Button button; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_weight_tracker); | ||
|
||
button = (Button)findViewById(R.id.btn_weight_back); | ||
button.setOnClickListener(new View.OnClickListener(){ | ||
@Override | ||
public void onClick(View v){ | ||
Intent intent = new Intent(WeightTrackerActivity.this,DashboardActivity.class); | ||
startActivity(intent); | ||
} | ||
}); | ||
} | ||
} |
Oops, something went wrong.