diff options
Diffstat (limited to 'Android/01-TheActivityClass/ActivityLab/res')
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png | bin | 0 -> 8217 bytes | |||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png | bin | 0 -> 2557 bytes | |||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png | bin | 0 -> 4062 bytes | |||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png | bin | 0 -> 13563 bytes | |||
-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 | ||||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/values-v11/styles.xml | 11 | ||||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/values-v14/styles.xml | 12 | ||||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/values/strings.xml | 14 | ||||
-rw-r--r-- | Android/01-TheActivityClass/ActivityLab/res/values/styles.xml | 20 |
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 Binary files differnew file mode 100644 index 0000000..0e79b18 --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..ebfac7d --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..1183441 --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..c8ab2a1 --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png 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 |