summaryrefslogtreecommitdiffstats
path: root/Android/02-Intents/IntentsLab/res/layout
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-02-12 22:33:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-11-10 17:40:54 +0100
commitee3ef2bcf3656e3e7a02d86d43858cc8145508da (patch)
treec428969d47180877913f95201067f4b750f91b2a /Android/02-Intents/IntentsLab/res/layout
parent339c57d3520c8de6f970b020c87f77ec266f3bf8 (diff)
downloadcoursera-ee3ef2bcf3656e3e7a02d86d43858cc8145508da.zip
coursera-ee3ef2bcf3656e3e7a02d86d43858cc8145508da.tar.gz
Android : 02-Intents: add
Diffstat (limited to 'Android/02-Intents/IntentsLab/res/layout')
-rw-r--r--Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml25
-rw-r--r--Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml33
2 files changed, 58 insertions, 0 deletions
diff --git a/Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml b/Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml
new file mode 100644
index 0000000..00218cb
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml
@@ -0,0 +1,25 @@
+<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" >
+
+ <Button
+ android:id="@+id/explicit_activation_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/explicit_activation_button_string" />
+
+ <Button
+ android:id="@+id/implicit_activation_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/implicit_activation_button_string" />
+
+ <TextView
+ android:id="@+id/textView1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/no_text_entered" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml b/Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml
new file mode 100644
index 0000000..c4757c0
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml
@@ -0,0 +1,33 @@
+<RelativeLayout 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" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:text="@string/explicit_message" />
+
+ <EditText
+ android:id="@+id/editText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:ems="10"
+ android:hint="@string/enter_text_here_string" >
+
+ <requestFocus />
+ </EditText>
+
+ <Button
+ android:id="@+id/enter_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_below="@+id/editText"
+ android:text="@string/enter_string" />
+
+</RelativeLayout> \ No newline at end of file