summaryrefslogtreecommitdiffstats
path: root/Android/03-Permissions/PermissionsLab/res
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-02-11 22:29:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-11-10 17:40:54 +0100
commitc885a3c127a9ab64fad5535b6c1f9e42e4689f7b (patch)
tree52ce77898112155c41b179837fc3d6627bf53d54 /Android/03-Permissions/PermissionsLab/res
parent3c228228209bb186ab6881eb9b9bae10c1d5c893 (diff)
downloadcoursera-c885a3c127a9ab64fad5535b6c1f9e42e4689f7b.zip
coursera-c885a3c127a9ab64fad5535b6c1f9e42e4689f7b.tar.gz
Android : 03-Permissions: add
Diffstat (limited to 'Android/03-Permissions/PermissionsLab/res')
-rw-r--r--Android/03-Permissions/PermissionsLab/res/drawable-hdpi/ic_launcher.pngbin0 -> 9397 bytes
-rw-r--r--Android/03-Permissions/PermissionsLab/res/drawable-ldpi/ic_launcher.pngbin0 -> 2729 bytes
-rw-r--r--Android/03-Permissions/PermissionsLab/res/drawable-mdpi/ic_launcher.pngbin0 -> 5237 bytes
-rw-r--r--Android/03-Permissions/PermissionsLab/res/drawable-xhdpi/ic_launcher.pngbin0 -> 14383 bytes
-rw-r--r--Android/03-Permissions/PermissionsLab/res/layout/activity_loader_activity.xml14
-rw-r--r--Android/03-Permissions/PermissionsLab/res/layout/bookmarks_activity.xml26
-rw-r--r--Android/03-Permissions/PermissionsLab/res/layout/go_to_dangerous_activity.xml18
-rw-r--r--Android/03-Permissions/PermissionsLab/res/values/strings.xml15
-rw-r--r--Android/03-Permissions/PermissionsLab/res/values/styles.xml20
9 files changed, 93 insertions, 0 deletions
diff --git a/Android/03-Permissions/PermissionsLab/res/drawable-hdpi/ic_launcher.png b/Android/03-Permissions/PermissionsLab/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/Android/03-Permissions/PermissionsLab/res/drawable-ldpi/ic_launcher.png b/Android/03-Permissions/PermissionsLab/res/drawable-ldpi/ic_launcher.png
new file mode 100644
index 0000000..9923872
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/drawable-ldpi/ic_launcher.png
Binary files differ
diff --git a/Android/03-Permissions/PermissionsLab/res/drawable-mdpi/ic_launcher.png b/Android/03-Permissions/PermissionsLab/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/Android/03-Permissions/PermissionsLab/res/drawable-xhdpi/ic_launcher.png b/Android/03-Permissions/PermissionsLab/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/Android/03-Permissions/PermissionsLab/res/layout/activity_loader_activity.xml b/Android/03-Permissions/PermissionsLab/res/layout/activity_loader_activity.xml
new file mode 100644
index 0000000..bb4b36f
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/layout/activity_loader_activity.xml
@@ -0,0 +1,14 @@
+<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"
+ tools:context=".ActivityLoaderActivity" >
+
+ <Button
+ android:id="@+id/start_bookmarks_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/main_button3" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/Android/03-Permissions/PermissionsLab/res/layout/bookmarks_activity.xml b/Android/03-Permissions/PermissionsLab/res/layout/bookmarks_activity.xml
new file mode 100644
index 0000000..d2b0a68
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/layout/bookmarks_activity.xml
@@ -0,0 +1,26 @@
+<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/text"
+ android:layout_width="match_parent"
+ android:layout_height="250dp"
+ android:maxHeight="250dp"
+ android:text="@string/place_holder" />
+
+ <Button
+ android:id="@+id/get_bookmarks_button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/perms_button1" />
+
+ <Button
+ android:id="@+id/go_to_dangerous_activity_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/perms_button2" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/Android/03-Permissions/PermissionsLab/res/layout/go_to_dangerous_activity.xml b/Android/03-Permissions/PermissionsLab/res/layout/go_to_dangerous_activity.xml
new file mode 100644
index 0000000..a657661
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/layout/go_to_dangerous_activity.xml
@@ -0,0 +1,18 @@
+<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:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/cust_message" />
+
+ <Button
+ android:id="@+id/start_dangerous_activity_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/cust_button1" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/Android/03-Permissions/PermissionsLab/res/values/strings.xml b/Android/03-Permissions/PermissionsLab/res/values/strings.xml
new file mode 100644
index 0000000..a9ee507
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/res/values/strings.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_name">PermissionsLab</string>
+ <string name="title_main">PermissionsLab</string>
+ <string name="main_button3">Bookmarks Activity</string>
+ <string name="title_permissions">Permissions</string>
+ <string name="perms_button1">Get Bookmarks</string>
+ <string name="perms_button2">Go To DangerousActivity</string>
+ <string name="place_holder">Bookmarks Go Here</string>
+ <string name="title_activity_customization">Customization</string>
+ <string name="cust_button1">Start Dangerous Activity</string>
+ <string name="cust_message">This button will load a Dangerous Level activity</string>
+
+</resources> \ No newline at end of file
diff --git a/Android/03-Permissions/PermissionsLab/res/values/styles.xml b/Android/03-Permissions/PermissionsLab/res/values/styles.xml
new file mode 100644
index 0000000..4a10ca4
--- /dev/null
+++ b/Android/03-Permissions/PermissionsLab/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