summaryrefslogtreecommitdiffstats
path: root/Android/01-TheActivityClass/ActivityLab/res
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-31 16:28:09 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-11-10 17:40:54 +0100
commite951bbe638b4af5330d68394a1a37e1b118bab28 (patch)
tree5268102bc54d3adc81ae112000c8b6b926f730f7 /Android/01-TheActivityClass/ActivityLab/res
parent12a106bba4cf6ac9a8e9aa62c5f4fc4e6ba65b38 (diff)
downloadcoursera-e951bbe638b4af5330d68394a1a37e1b118bab28.zip
coursera-e951bbe638b4af5330d68394a1a37e1b118bab28.tar.gz
Android : 01-TheActivityClass: add
Diffstat (limited to 'Android/01-TheActivityClass/ActivityLab/res')
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.pngbin0 -> 8217 bytes
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.pngbin0 -> 2557 bytes
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.pngbin0 -> 4062 bytes
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.pngbin0 -> 13563 bytes
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml32
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/layout/activity_two.xml33
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/values-v11/styles.xml11
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/values-v14/styles.xml12
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/values/strings.xml14
-rw-r--r--Android/01-TheActivityClass/ActivityLab/res/values/styles.xml20
10 files changed, 122 insertions, 0 deletions
diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..0e79b18
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png
new file mode 100644
index 0000000..ebfac7d
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png
Binary files differ
diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..1183441
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..c8ab2a1
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png
Binary files differ
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>
diff --git a/Android/01-TheActivityClass/ActivityLab/res/values-v11/styles.xml b/Android/01-TheActivityClass/ActivityLab/res/values-v11/styles.xml
new file mode 100644
index 0000000..541752f
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/values-v11/styles.xml
@@ -0,0 +1,11 @@
+<resources>
+
+ <!--
+ Base application theme for API 11+. This theme completely replaces
+ AppBaseTheme from res/values/styles.xml on API 11+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
+ <!-- API 11 theme customizations can go here. -->
+ </style>
+
+</resources> \ No newline at end of file
diff --git a/Android/01-TheActivityClass/ActivityLab/res/values-v14/styles.xml b/Android/01-TheActivityClass/ActivityLab/res/values-v14/styles.xml
new file mode 100644
index 0000000..f20e015
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/values-v14/styles.xml
@@ -0,0 +1,12 @@
+<resources>
+
+ <!--
+ Base application theme for API 14+. This theme completely replaces
+ AppBaseTheme from BOTH res/values/styles.xml and
+ res/values-v11/styles.xml on API 14+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
+ <!-- API 14 theme customizations can go here. -->
+ </style>
+
+</resources> \ No newline at end of file
diff --git a/Android/01-TheActivityClass/ActivityLab/res/values/strings.xml b/Android/01-TheActivityClass/ActivityLab/res/values/strings.xml
new file mode 100644
index 0000000..765f806
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/values/strings.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_name">ActivityLab</string>
+ <string name="menu_settings">Settings</string>
+ <string name="onCreate">onCreate() calls: 0</string>
+ <string name="onStart">onStart() calls: 0</string>
+ <string name="onResume">onResume() calls: 0</string>
+ <string name="onRestart">onRestart() calls: 0</string>
+ <string name="button">Start Activity Two</string>
+ <string name="title_activity_activity_two">Activity Two</string>
+ <string name="close">Close Activity</string>
+
+</resources>
diff --git a/Android/01-TheActivityClass/ActivityLab/res/values/styles.xml b/Android/01-TheActivityClass/ActivityLab/res/values/styles.xml
new file mode 100644
index 0000000..4a10ca4
--- /dev/null
+++ b/Android/01-TheActivityClass/ActivityLab/res/values/styles.xml
@@ -0,0 +1,20 @@
+<resources>
+
+ <!--
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Light">
+ <!--
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+ -->
+ </style>
+
+ <!-- Application theme. -->
+ <style name="AppTheme" parent="AppBaseTheme">
+ <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+ </style>
+
+</resources> \ No newline at end of file