diff options
Diffstat (limited to 'example/android/AndroidExample/app/src/main/res')
13 files changed, 81 insertions, 0 deletions
diff --git a/example/android/AndroidExample/app/src/main/res/drawable-hdpi/ic_launcher.png b/example/android/AndroidExample/app/src/main/res/drawable-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 00000000..96a442e5 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/example/android/AndroidExample/app/src/main/res/drawable-mdpi/ic_launcher.png b/example/android/AndroidExample/app/src/main/res/drawable-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 00000000..359047df --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/example/android/AndroidExample/app/src/main/res/drawable-xhdpi/ic_launcher.png b/example/android/AndroidExample/app/src/main/res/drawable-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 00000000..71c6d760 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/example/android/AndroidExample/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/example/android/AndroidExample/app/src/main/res/drawable-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 00000000..4df18946 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/drawable-xxhdpi/ic_launcher.png diff --git a/example/android/AndroidExample/app/src/main/res/layout-sw600dp/activity_messageview_list.xml b/example/android/AndroidExample/app/src/main/res/layout-sw600dp/activity_messageview_list.xml new file mode 100644 index 00000000..9b211bda --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/layout-sw600dp/activity_messageview_list.xml @@ -0,0 +1,23 @@ +<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:layout_marginLeft="16dp" + android:layout_marginRight="16dp" android:baselineAligned="false" + android:divider="?android:attr/dividerHorizontal" android:orientation="horizontal" + android:showDividers="middle" + tools:context="com.libmailcore.androidexample.MessageViewListActivity"> + + <!-- + This layout is a two-pane layout for the MessagesViews + master/detail flow. + + --> + + <fragment android:id="@+id/messageview_list" + android:name="com.libmailcore.androidexample.MessageViewListFragment" + android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" + tools:layout="@android:layout/list_content" /> + + <FrameLayout android:id="@+id/messageview_detail_container" android:layout_width="0dp" + android:layout_height="match_parent" android:layout_weight="3" /> + +</LinearLayout> diff --git a/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_detail.xml b/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_detail.xml new file mode 100644 index 00000000..fa100d0b --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_detail.xml @@ -0,0 +1,5 @@ +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:id="@+id/messageview_detail_container" + android:layout_width="match_parent" android:layout_height="match_parent" + tools:context="com.libmailcore.androidexample.MessageViewDetailActivity" + tools:ignore="MergeRootFrame" /> diff --git a/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_list.xml b/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_list.xml new file mode 100644 index 00000000..039f69b1 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/layout/activity_messageview_list.xml @@ -0,0 +1,7 @@ +<fragment xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:id="@+id/messageview_list" + android:name="com.libmailcore.androidexample.MessageViewListFragment" + android:layout_width="match_parent" android:layout_height="match_parent" + android:layout_marginLeft="16dp" android:layout_marginRight="16dp" + tools:context="com.libmailcore.androidexample.MessageViewListActivity" + tools:layout="@android:layout/list_content" /> diff --git a/example/android/AndroidExample/app/src/main/res/layout/fragment_messageview_detail.xml b/example/android/AndroidExample/app/src/main/res/layout/fragment_messageview_detail.xml new file mode 100644 index 00000000..d1ecbf75 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/layout/fragment_messageview_detail.xml @@ -0,0 +1,5 @@ +<WebView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:id="@+id/messageview_detail" + style="?android:attr/textAppearanceLarge" android:layout_width="match_parent" + android:layout_height="match_parent" android:padding="16dp" android:textIsSelectable="true" + tools:context="com.libmailcore.androidexample.MessageViewDetailFragment" /> diff --git a/example/android/AndroidExample/app/src/main/res/values-v21/styles.xml b/example/android/AndroidExample/app/src/main/res/values-v21/styles.xml new file mode 100644 index 00000000..dba3c417 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/values-v21/styles.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <style name="AppTheme" parent="android:Theme.Material.Light"> + </style> +</resources> diff --git a/example/android/AndroidExample/app/src/main/res/values/dimens.xml b/example/android/AndroidExample/app/src/main/res/values/dimens.xml new file mode 100644 index 00000000..47c82246 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/values/dimens.xml @@ -0,0 +1,5 @@ +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> +</resources> diff --git a/example/android/AndroidExample/app/src/main/res/values/strings.xml b/example/android/AndroidExample/app/src/main/res/values/strings.xml new file mode 100644 index 00000000..986a9ee4 --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/values/strings.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="app_name">AndroidExample</string> + <string name="title_messageview_list">MessagesViews</string> + <string name="title_messageview_detail">MessageView Detail</string> + +</resources> diff --git a/example/android/AndroidExample/app/src/main/res/values/strings_activity_login.xml b/example/android/AndroidExample/app/src/main/res/values/strings_activity_login.xml new file mode 100644 index 00000000..9f1a810f --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/values/strings_activity_login.xml @@ -0,0 +1,15 @@ +<resources> + <string name="title_activity_login">Sign in</string> + + <!-- Strings related to login --> + <string name="prompt_email">Email</string> + <string name="prompt_password">Password (optional)</string> + <string name="action_sign_in">Sign in or register</string> + <string name="action_sign_in_short">Sign in</string> + <string name="plus_sign_out">Switch Google+ account</string> + <string name="plus_disconnect">Disconnect from Google+</string> + <string name="error_invalid_email">This email address is invalid</string> + <string name="error_invalid_password">This password is too short</string> + <string name="error_incorrect_password">This password is incorrect</string> + <string name="error_field_required">This field is required</string> +</resources> diff --git a/example/android/AndroidExample/app/src/main/res/values/styles.xml b/example/android/AndroidExample/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..ff6c9d2c --- /dev/null +++ b/example/android/AndroidExample/app/src/main/res/values/styles.xml @@ -0,0 +1,8 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> + <!-- Customize your theme here. --> + </style> + +</resources> |