diff options
author | Chris Warrington <cmw@google.com> | 2016-10-18 12:29:21 +0100 |
---|---|---|
committer | Chris Warrington <cmw@google.com> | 2016-10-18 12:34:18 +0100 |
commit | e3780081075c01aa1dff6d1f373cb43192b33e68 (patch) | |
tree | fb734615933a39f3d009210dc0d1457160479b35 /libs/editor/example/src/main/res | |
parent | 7e05eb7e57827eddc885570bc00aed8a50320dbf (diff) | |
parent | 025b8b226c8d8edba2b309ca878572f40512eca7 (diff) | |
download | gradle-perf-android-medium-e3780081075c01aa1dff6d1f373cb43192b33e68.tar.gz |
Merge remote-tracking branch 'origin/upstream-master' into masterHEADstudio-3.4.0studio-3.2.1studio-3.1.2studio-3.0studio-2.3gradle_3.4.0gradle_3.1.2gradle_3.0.0gradle_2.3.0studio-master-devmirror-goog-studio-master-devmastermain
Change-Id: I63f5e16d09297c48432192761b840310935eb903
Diffstat (limited to 'libs/editor/example/src/main/res')
-rw-r--r-- | libs/editor/example/src/main/res/layout/activity_example.xml | 44 | ||||
-rw-r--r-- | libs/editor/example/src/main/res/layout/activity_legacy_editor.xml | 13 | ||||
-rw-r--r-- | libs/editor/example/src/main/res/layout/activity_new_editor.xml | 13 | ||||
-rw-r--r-- | libs/editor/example/src/main/res/mipmap-hdpi/ic_launcher.png | bin | 0 -> 3418 bytes | |||
-rw-r--r-- | libs/editor/example/src/main/res/mipmap-mdpi/ic_launcher.png | bin | 0 -> 2206 bytes | |||
-rw-r--r-- | libs/editor/example/src/main/res/mipmap-xhdpi/ic_launcher.png | bin | 0 -> 4842 bytes | |||
-rw-r--r-- | libs/editor/example/src/main/res/mipmap-xxhdpi/ic_launcher.png | bin | 0 -> 7718 bytes | |||
-rw-r--r-- | libs/editor/example/src/main/res/values/colors.xml | 4 | ||||
-rw-r--r-- | libs/editor/example/src/main/res/values/strings.xml | 21 | ||||
-rw-r--r-- | libs/editor/example/src/main/res/values/styles.xml | 9 |
10 files changed, 104 insertions, 0 deletions
diff --git a/libs/editor/example/src/main/res/layout/activity_example.xml b/libs/editor/example/src/main/res/layout/activity_example.xml new file mode 100644 index 000000000..b94cea8ab --- /dev/null +++ b/libs/editor/example/src/main/res/layout/activity_example.xml @@ -0,0 +1,44 @@ +<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" + tools:context="org.wordpress.android.editor.example.MainExampleActivity"> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="New Editor - Post 1" + android:id="@+id/new_editor_post_1" + android:layout_alignParentTop="true" + android:layout_marginTop="32dp" + android:layout_centerHorizontal="true"/> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="New Editor - Empty Post" + android:id="@+id/new_editor_post_empty" + android:layout_marginTop="32dp" + android:layout_centerHorizontal="true" + android:layout_below="@id/new_editor_post_1"/> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Legacy Editor - Post 1 - Local Draft" + android:id="@+id/legacy_editor_post_1_local" + android:layout_marginTop="32dp" + android:layout_centerHorizontal="true" + android:layout_below="@id/new_editor_post_empty"/> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Legacy Editor - Post 1 - Remote" + android:id="@+id/legacy_editor_post_1_remote" + android:layout_marginTop="32dp" + android:layout_centerHorizontal="true" + android:layout_below="@id/legacy_editor_post_1_local"/> + + +</RelativeLayout> diff --git a/libs/editor/example/src/main/res/layout/activity_legacy_editor.xml b/libs/editor/example/src/main/res/layout/activity_legacy_editor.xml new file mode 100644 index 000000000..24756188d --- /dev/null +++ b/libs/editor/example/src/main/res/layout/activity_legacy_editor.xml @@ -0,0 +1,13 @@ +<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" + tools:context=".EditorActivity"> + + <fragment + android:id="@+id/postEditor" + android:name="org.wordpress.android.editor.LegacyEditorFragment" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</RelativeLayout> diff --git a/libs/editor/example/src/main/res/layout/activity_new_editor.xml b/libs/editor/example/src/main/res/layout/activity_new_editor.xml new file mode 100644 index 000000000..478e491e5 --- /dev/null +++ b/libs/editor/example/src/main/res/layout/activity_new_editor.xml @@ -0,0 +1,13 @@ +<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" + tools:context=".EditorActivity"> + + <fragment + android:id="@+id/postEditor" + android:name="org.wordpress.android.editor.EditorFragment" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</RelativeLayout> diff --git a/libs/editor/example/src/main/res/mipmap-hdpi/ic_launcher.png b/libs/editor/example/src/main/res/mipmap-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000..cde69bccc --- /dev/null +++ b/libs/editor/example/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/libs/editor/example/src/main/res/mipmap-mdpi/ic_launcher.png b/libs/editor/example/src/main/res/mipmap-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000..c133a0cbd --- /dev/null +++ b/libs/editor/example/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/libs/editor/example/src/main/res/mipmap-xhdpi/ic_launcher.png b/libs/editor/example/src/main/res/mipmap-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000..bfa42f0e7 --- /dev/null +++ b/libs/editor/example/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/libs/editor/example/src/main/res/mipmap-xxhdpi/ic_launcher.png b/libs/editor/example/src/main/res/mipmap-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000..324e72cdd --- /dev/null +++ b/libs/editor/example/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/libs/editor/example/src/main/res/values/colors.xml b/libs/editor/example/src/main/res/values/colors.xml new file mode 100644 index 000000000..e8782a95d --- /dev/null +++ b/libs/editor/example/src/main/res/values/colors.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="color_control_activated">@color/wp_blue_light</color> +</resources>
\ No newline at end of file diff --git a/libs/editor/example/src/main/res/values/strings.xml b/libs/editor/example/src/main/res/values/strings.xml new file mode 100644 index 000000000..c8ac8b7dd --- /dev/null +++ b/libs/editor/example/src/main/res/values/strings.xml @@ -0,0 +1,21 @@ +<resources> + <string name="app_name">Editor Example</string> + <string name="title_activity_example">Editor Example</string> + <string name="starting_legacy_editor">Starting legacy editor</string> + <string name="starting_new_editor">Starting new editor</string> + <string name="example_post_visual_title">I\'m editing a post!</string> + <string name="example_post_title_placeholder">Post title</string> + <string name="example_post_content_placeholder">Share your story hereā¦</string> + <string name="example_post_1_title">Post 1</string> + <string name="example_post_1_content">Post 1 Content:\nBest post ever!</string> + <string name="example_post_2_title">Post 2</string> + <string name="example_post_2_content"> + <![CDATA[<p>Post 2 Content</p><blockquote>Quoted text</blockquote><br/>]]> + </string> + + <string name="select_image">Select an image</string> + <string name="select_image_fail">Select an image (failure demo)</string> + <string name="select_video">Select a video</string> + <string name="select_video_fail">Select a video (failure demo)</string> + <string name="select_image_slow_network">Select an image (slow network demo)</string> +</resources> diff --git a/libs/editor/example/src/main/res/values/styles.xml b/libs/editor/example/src/main/res/values/styles.xml new file mode 100644 index 000000000..1ef1ba72e --- /dev/null +++ b/libs/editor/example/src/main/res/values/styles.xml @@ -0,0 +1,9 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorControlActivated">@color/color_control_activated</item> + </style> + +</resources> |