From 52d16417821a716fa403c5d63de019380153db7e Mon Sep 17 00:00:00 2001 From: Rikka Date: Tue, 24 May 2016 15:09:53 +0800 Subject: [PATCH] Fix some RTL layout --- .../main/res/layout/list_item_edit_sites.xml | 11 ++-- .../layout/list_item_edit_sites_header.xml | 15 +++--- .../main/res/layout/list_item_iqdb_result.xml | 33 ++++++------ .../res/layout/list_item_post_form_add.xml | 3 +- .../main/res/layout/preference_material.xml | 52 ------------------- 5 files changed, 33 insertions(+), 81 deletions(-) delete mode 100644 app/src/main/res/layout/preference_material.xml diff --git a/app/src/main/res/layout/list_item_edit_sites.xml b/app/src/main/res/layout/list_item_edit_sites.xml index 6f2a049..21bb311 100644 --- a/app/src/main/res/layout/list_item_edit_sites.xml +++ b/app/src/main/res/layout/list_item_edit_sites.xml @@ -36,6 +36,7 @@ android:layout_height="32dp" android:layout_marginBottom="2dp" android:paddingLeft="16dp" + android:paddingRight="16dp" android:fontFamily="sans-serif-medium" android:gravity="bottom" android:text="@{LayoutStyle.headText}" @@ -54,7 +55,7 @@ android:onLongClick="@{Listener.viewOnLongClick}" android:orientation="horizontal" android:paddingLeft="16dp" - android:paddingRight="0dp"> + android:paddingRight="16dp"> + android:orientation="vertical"> @@ -118,6 +118,7 @@ android:layout_width="match_parent" android:layout_height="1dp" android:layout_marginLeft="74dp" + android:layout_marginStart="74dp" android:background="@color/dividerSearchEngineList" android:visibility="@{LayoutStyle.needDivider?View.VISIBLE:View.GONE}" /> diff --git a/app/src/main/res/layout/list_item_edit_sites_header.xml b/app/src/main/res/layout/list_item_edit_sites_header.xml index 04493d1..1cadefd 100644 --- a/app/src/main/res/layout/list_item_edit_sites_header.xml +++ b/app/src/main/res/layout/list_item_edit_sites_header.xml @@ -1,17 +1,20 @@ + xmlns:tools="http://schemas.android.com/tools" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="32dp" + android:background="@android:color/white" + android:elevation="0dp"> diff --git a/app/src/main/res/layout/list_item_iqdb_result.xml b/app/src/main/res/layout/list_item_iqdb_result.xml index 2ec7004..ea90ed6 100644 --- a/app/src/main/res/layout/list_item_iqdb_result.xml +++ b/app/src/main/res/layout/list_item_iqdb_result.xml @@ -14,14 +14,15 @@ limitations under the License. --> + android:layout_width="match_parent" + android:layout_height="96dp" + xmlns:tools="http://schemas.android.com/tools" + android:gravity="center_vertical" + android:orientation="horizontal" + android:focusable="true" + android:clickable="true" + android:background="?attr/selectableItemBackground" + android:id="@+id/view"> + android:layout_margin="8dp" /> + android:layout_marginRight="8dp" + android:layout_marginEnd="8dp" /> \ No newline at end of file diff --git a/app/src/main/res/layout/preference_material.xml b/app/src/main/res/layout/preference_material.xml deleted file mode 100644 index 945cd41..0000000 --- a/app/src/main/res/layout/preference_material.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file