[go: nahoru, domu]

Skip to content

Commit

Permalink
Pulled the EditorWebView layout element into a separate file
Browse files Browse the repository at this point in the history
- Now using distinct editor resources for API 19+ and for older APIs
  • Loading branch information
aforcier committed Apr 25, 2015
1 parent b4a21f4 commit ba3c137
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions WordPressEditor/src/main/res/layout-v19/editor_webview.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<org.wordpress.android.editor.EditorWebView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
6 changes: 6 additions & 0 deletions WordPressEditor/src/main/res/layout/editor_webview.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<org.wordpress.android.editor.EditorWebViewCompatibility
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
7 changes: 3 additions & 4 deletions WordPressEditor/src/main/res/layout/fragment_editor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
android:layout_height="match_parent"
tools:context="org.wordpress.android.editor.EditorFragment">

<org.wordpress.android.editor.EditorWebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/webview"/>
<include
layout="@layout/editor_webview"
android:id="@+id/webview" />

<LinearLayout
android:id="@+id/format_bar"
Expand Down

0 comments on commit ba3c137

Please sign in to comment.