RTL适配:全局替换布局属性(layout_marginLeft->layout_marginStar、layout_marginRight->layout_marginEnd、paddingLeft->paddingStart、paddingRight->paddingEnd、drawableLeft->drawableStar、drawableRight->drawableEnd、gravityLeft->gravityStart、gravityRight->gravityEnd)
This commit is contained in:
@@ -40,10 +40,8 @@
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/easy_photos_bar_primary_translation"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingTop="50dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toTopOf="@+id/m_bottom_bar"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
@@ -65,9 +63,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toTopOf="@+id/m_bottom_bar"
|
||||
@@ -134,9 +130,7 @@
|
||||
android:gravity="center"
|
||||
android:minWidth="70dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingRight="6dp"
|
||||
android:text="@string/selector_folder_all_easy_photos"
|
||||
android:textColor="@color/easy_photos_fg_primary"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/m_bottom_bar"
|
||||
@@ -172,9 +166,7 @@
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:text="@string/selector_preview_easy_photos"
|
||||
android:textColor="@color/easy_photos_fg_primary"
|
||||
android:visibility="invisible"
|
||||
@@ -215,7 +207,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/picture_selection_easy_photos"
|
||||
android:textColor="@color/easy_photos_fg_primary"
|
||||
@@ -229,7 +220,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:background="@drawable/bg_menu_done_easy_photos"
|
||||
android:gravity="center"
|
||||
android:padding="6dp"
|
||||
|
@@ -59,8 +59,8 @@
|
||||
android:layout_toEndOf="@+id/m_back_line"
|
||||
android:layout_toRightOf="@+id/m_back_line"
|
||||
android:gravity="center"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:textColor="@color/easy_photos_preview_fg_primary" />
|
||||
|
||||
<com.chwl.library.easyphoto.ui.widget.PressedTextView
|
||||
@@ -71,7 +71,6 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:background="@drawable/bg_menu_done_easy_photos"
|
||||
android:gravity="center"
|
||||
android:maxWidth="200dp"
|
||||
@@ -117,8 +116,8 @@
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:gravity="center"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="@string/edit_easy_photos"
|
||||
android:textColor="@color/easy_photos_preview_fg_primary"
|
||||
android:textStyle="bold"
|
||||
@@ -156,9 +155,7 @@
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingRight="16dp"
|
||||
app:srcCompat="@drawable/ic_selector_easy_photos" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
@@ -28,8 +28,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="42dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
@@ -161,8 +161,6 @@
|
||||
android:layout_alignParentStart="true"
|
||||
android:gravity="center"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:text="@string/cancel_easy_photos"
|
||||
android:textColor="@color/easy_photos_fg_primary"
|
||||
@@ -178,7 +176,6 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:gravity="center"
|
||||
android:maxWidth="200dp"
|
||||
android:minWidth="56dp"
|
||||
@@ -196,7 +193,6 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:visibility="invisible" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
@@ -57,7 +57,6 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:background="@drawable/bg_menu_done_easy_photos"
|
||||
android:gravity="center"
|
||||
android:padding="6dp"
|
||||
@@ -81,8 +80,6 @@
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/easy_photos_bar_primary_translation"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingTop="50dp"
|
||||
android:visibility="gone"
|
||||
@@ -108,8 +105,6 @@
|
||||
android:gravity="center"
|
||||
android:minWidth="70dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="6dp"
|
||||
android:paddingStart="16dp"
|
||||
android:textColor="@color/easy_photos_fg_primary"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/m_tool_bar"
|
||||
|
@@ -10,8 +10,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingEnd="0dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="0dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingTop="16dp" />
|
||||
</FrameLayout>
|
||||
|
@@ -69,13 +69,10 @@
|
||||
android:id="@+id/et"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="@drawable/bg_text_sticker_editor_easy_photos"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingEnd="26dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="26dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingTop="8dp"
|
||||
android:textColor="@color/easy_photos_fg_accent"
|
||||
@@ -90,7 +87,6 @@
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/et"
|
||||
app:layout_constraintRight_toRightOf="@+id/et"
|
||||
app:layout_constraintTop_toTopOf="@+id/et"
|
||||
|
@@ -5,8 +5,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
@@ -30,7 +28,6 @@
|
||||
android:id="@+id/tv_album_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:textColor="@color/album_item_name_easy_photos"
|
||||
android:textSize="16sp"
|
||||
@@ -42,7 +39,6 @@
|
||||
android:id="@+id/tv_album_photos_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:textColor="@color/album_item_count_easy_photos"
|
||||
@@ -55,7 +51,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
@@ -2,8 +2,7 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
android:layout_marginEnd="8dp">
|
||||
|
||||
<com.chwl.library.easyphoto.ui.widget.PressedImageView
|
||||
android:id="@+id/iv_photo"
|
||||
@@ -25,8 +24,6 @@
|
||||
android:gravity="center"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingTop="3dp"
|
||||
android:shadowColor="@color/easy_photos_bar_primary"
|
||||
|
@@ -25,8 +25,6 @@
|
||||
android:gravity="center"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingTop="3dp"
|
||||
android:shadowColor="@color/easy_photos_bar_primary"
|
||||
|
@@ -31,8 +31,6 @@
|
||||
android:gravity="center"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingTop="3dp"
|
||||
android:shadowColor="@color/easy_photos_bar_primary"
|
||||
|
@@ -47,8 +47,6 @@
|
||||
android:gravity="center"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingTop="3dp"
|
||||
android:shadowColor="@color/easy_photos_bar_primary"
|
||||
|
Reference in New Issue
Block a user