Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

Commit

Permalink
Fix some RTL layout
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed May 24, 2016
1 parent be8db70 commit 52d1641
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 81 deletions.
11 changes: 6 additions & 5 deletions app/src/main/res/layout/list_item_edit_sites.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -54,7 +55,7 @@
android:onLongClick="@{Listener.viewOnLongClick}"
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingRight="0dp">
android:paddingRight="16dp">

<ImageView
android:id="@+id/item_icon"
Expand All @@ -67,16 +68,16 @@

<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="false"
android:layout_alignParentStart="false"
android:layout_alignParentTop="true"
android:layout_marginLeft="26dp"
android:layout_marginStart="26dp"
android:layout_toEndOf="@id/item_icon"
android:layout_toRightOf="@id/item_icon"
android:orientation="vertical"
android:paddingRight="56dp">
android:orientation="vertical">

<TextView
android:layout_width="match_parent"
Expand Down Expand Up @@ -108,7 +109,6 @@
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="12dp"
android:checked="@{engine.enabled==1?true:false}"
app:OnCheckedChangeListener="@{Listener.switchCheckedChangeListener}" />
</RelativeLayout>
Expand All @@ -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}" />

Expand Down
15 changes: 9 additions & 6 deletions app/src/main/res/layout/list_item_edit_sites_header.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="32dp"
android:background="@android:color/white"
android:elevation="0dp">
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">

<TextView
android:id="@+id/item_header"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="New Text"
tools:text="New Text"
android:gravity="bottom"
android:layout_marginLeft="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:layout_marginBottom="2dp"
android:textSize="14sp"
android:fontFamily="sans-serif-medium"/>
Expand Down
33 changes: 16 additions & 17 deletions app/src/main/res/layout/list_item_iqdb_result.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="96dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:focusable="true"
android:clickable="true"
android:background="?attr/selectableItemBackground"
android:id="@+id/view">
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">

<ImageView
android:layout_width="84dp"
Expand All @@ -32,27 +33,25 @@
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_marginRight="8dp" />
android:layout_margin="8dp" />

<TextView
android:id="@+id/item_text_url"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="Item"
tools:text="Item"
android:textSize="16sp"
android:layout_alignTop="@+id/item_image"
android:layout_toRightOf="@+id/item_image"
android:layout_toEndOf="@+id/item_image"
android:layout_marginRight="8dp" />
android:layout_marginRight="8dp"
android:layout_marginEnd="8dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Text"
tools:text="title"
android:id="@+id/item_text_size"
android:layout_above="@+id/item_text_similarity"
android:layout_alignLeft="@+id/item_text_url"
Expand All @@ -61,7 +60,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Text"
tools:text="New Text"
android:id="@+id/item_text_similarity"
android:layout_alignBottom="@+id/item_image"
android:layout_alignLeft="@+id/item_text_size"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/list_item_post_form_add.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
android:text="@string/upload_form_add"
android:id="@+id/textView"
android:layout_gravity="center_vertical"
android:layout_marginLeft="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:textSize="18sp"
android:textColor="#aeaeae" />
</LinearLayout>
52 changes: 0 additions & 52 deletions app/src/main/res/layout/preference_material.xml

This file was deleted.

0 comments on commit 52d1641

Please sign in to comment.