aboutsummaryrefslogtreecommitdiff
path: root/libs/editor/example/src/main/res
diff options
context:
space:
mode:
authorChris Warrington <cmw@google.com>2016-10-18 12:29:21 +0100
committerChris Warrington <cmw@google.com>2016-10-18 12:34:18 +0100
commite3780081075c01aa1dff6d1f373cb43192b33e68 (patch)
treefb734615933a39f3d009210dc0d1457160479b35 /libs/editor/example/src/main/res
parent7e05eb7e57827eddc885570bc00aed8a50320dbf (diff)
parent025b8b226c8d8edba2b309ca878572f40512eca7 (diff)
downloadgradle-perf-android-medium-e3780081075c01aa1dff6d1f373cb43192b33e68.tar.gz
Change-Id: I63f5e16d09297c48432192761b840310935eb903
Diffstat (limited to 'libs/editor/example/src/main/res')
-rw-r--r--libs/editor/example/src/main/res/layout/activity_example.xml44
-rw-r--r--libs/editor/example/src/main/res/layout/activity_legacy_editor.xml13
-rw-r--r--libs/editor/example/src/main/res/layout/activity_new_editor.xml13
-rw-r--r--libs/editor/example/src/main/res/mipmap-hdpi/ic_launcher.pngbin0 -> 3418 bytes
-rw-r--r--libs/editor/example/src/main/res/mipmap-mdpi/ic_launcher.pngbin0 -> 2206 bytes
-rw-r--r--libs/editor/example/src/main/res/mipmap-xhdpi/ic_launcher.pngbin0 -> 4842 bytes
-rw-r--r--libs/editor/example/src/main/res/mipmap-xxhdpi/ic_launcher.pngbin0 -> 7718 bytes
-rw-r--r--libs/editor/example/src/main/res/values/colors.xml4
-rw-r--r--libs/editor/example/src/main/res/values/strings.xml21
-rw-r--r--libs/editor/example/src/main/res/values/styles.xml9
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
new file mode 100644
index 000000000..cde69bccc
--- /dev/null
+++ b/libs/editor/example/src/main/res/mipmap-hdpi/ic_launcher.png
Binary files differ
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
new file mode 100644
index 000000000..c133a0cbd
--- /dev/null
+++ b/libs/editor/example/src/main/res/mipmap-mdpi/ic_launcher.png
Binary files differ
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
new file mode 100644
index 000000000..bfa42f0e7
--- /dev/null
+++ b/libs/editor/example/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
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
new file mode 100644
index 000000000..324e72cdd
--- /dev/null
+++ b/libs/editor/example/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary files differ
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>