diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-01-31 16:28:09 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-10 17:40:54 +0100 |
commit | e951bbe638b4af5330d68394a1a37e1b118bab28 (patch) | |
tree | 5268102bc54d3adc81ae112000c8b6b926f730f7 /Android/01-TheActivityClass/ActivityLab/res/layout | |
parent | 12a106bba4cf6ac9a8e9aa62c5f4fc4e6ba65b38 (diff) | |
download | coursera-e951bbe638b4af5330d68394a1a37e1b118bab28.zip coursera-e951bbe638b4af5330d68394a1a37e1b118bab28.tar.gz |
Android : 01-TheActivityClass: add
Diffstat (limited to 'Android/01-TheActivityClass/ActivityLab/res/layout')
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml | 32 | ||||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/layout/activity_two.xml | 33 |
2 files changed, 65 insertions, 0 deletions
diff --git a/Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml b/Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml new file mode 100644 index 0000000..d281f0f --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml @@ -0,0 +1,32 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <TextView android:id="@+id/create" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onCreate" /> + + <TextView android:id="@+id/start" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onStart" /> + + <TextView android:id="@+id/resume" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onResume" /> + + <TextView android:id="@+id/restart" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onRestart" /> + + <Button android:id="@+id/bLaunchActivityTwo" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/button" /> + +</LinearLayout> diff --git a/Android/01-TheActivityClass/ActivityLab/res/layout/activity_two.xml b/Android/01-TheActivityClass/ActivityLab/res/layout/activity_two.xml new file mode 100644 index 0000000..5ccc915 --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/res/layout/activity_two.xml @@ -0,0 +1,33 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <TextView android:id="@+id/create" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onCreate" /> + + <TextView android:id="@+id/start" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onStart" /> + + <TextView android:id="@+id/resume" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onResume" /> + + <TextView android:id="@+id/restart" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/onRestart" /> + + <Button android:id="@+id/bClose" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/close" + /> + +</LinearLayout> |