Skip to content

Commit

Permalink
final push
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhuiyan committed Nov 13, 2017
1 parent 6440892 commit 4567bf8
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ public class ViewHabitEventActivity extends Activity {
//private int habitIndex;
private int habitEventIndex;
private Habit habit;

/**
* Launches Interface displaying the habit events and their
* basic details.
*
* @param savedInstanceState
*/
@Override
Expand All @@ -59,13 +61,21 @@ protected void onCreate(Bundle savedInstanceState) {
this.userIndex);
HabitEvent habitEvent = allEvents.get(this.habitEventIndex);
headingTextView = (TextView) findViewById(R.id.habitEventDetailHeadingTextView);
habitTitleTextView = (TextView)
habitTitleTextView = (TextView) findViewById(R.id.HabitEventTextView2);
habitDateBoxTextView = (TextView) findViewById(R.id.habitEventTextView3);
habitCommentTextView = (TextView) findViewById(R.id.habitEventTextView4);

headingTextView.setText(("Here are the details of this habit event. Soon, you will be able to do more here!"));
habitTitleTextView.setText(("Habit Type: " + habitEvent.getHabit().getHabitTitle()));
habitDateBoxTextView.setText(("Date:" + habitEvent.getDateAsString()));
habitCommentTextView.setText(("Comment: " + habitEvent.getComment()));
}

}






//public void deleteEventButton(View view){}
}
//public void deleteEventButton(View view){}

0 comments on commit 4567bf8

Please sign in to comment.