多语言适配:部分布局属性修改(left->start、right->end等)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
android:id="@+id/iv_team_member_list"
|
||||
android:layout_width="?attr/actionBarSize"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:padding="17dp"
|
||||
android:src="@drawable/icon_team_member_management" />
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
@@ -62,7 +62,7 @@
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:gravity="left|center_vertical"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="@string/layout_dialog_bottom_magic_03"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
|
@@ -13,7 +13,7 @@
|
||||
android:id="@+id/iv_close"
|
||||
android:layout_width="@dimen/dp_30"
|
||||
android:layout_height="@dimen/dp_30"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
android:src="@drawable/ic_invite_dialog_close" />
|
||||
|
||||
|
@@ -127,7 +127,7 @@
|
||||
android:layout_weight="1"
|
||||
android:background="@android:color/white"
|
||||
android:hint="@string/layout_fragment_game_room_02"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:textColor="#888889"
|
||||
@@ -138,7 +138,7 @@
|
||||
android:id="@+id/input_send"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@drawable/click_white_gray_selector"
|
||||
android:scaleType="center"
|
||||
android:src="@android:drawable/ic_menu_send" />
|
||||
|
@@ -84,7 +84,7 @@
|
||||
android:id="@+id/tv_pk_mark"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/shape_pk_mic_queue_mark_red"
|
||||
android:gravity="center"
|
||||
|
@@ -15,7 +15,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableEnd="@mipmap/ic_family_currency_bill_date_arrow_down"
|
||||
android:gravity="left|center_vertical"
|
||||
android:gravity="start|center_vertical"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="13sp"
|
||||
tools:text="@string/layout_item_family_currency_bill_date_01" />
|
||||
|
@@ -8,7 +8,7 @@
|
||||
android:id="@+id/tv_remove"
|
||||
android:layout_width="78dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:background="#F95654"
|
||||
android:gravity="center"
|
||||
android:text="@string/layout_item_friend_black_list_manage_01"
|
||||
|
@@ -9,7 +9,7 @@
|
||||
android:id="@+id/infoRl"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left"
|
||||
android:layout_gravity="start"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/bg_giftlayout">
|
||||
|
@@ -29,7 +29,7 @@
|
||||
visible="@{tagInfo.hasUse==1}"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="19dp"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:gravity="center"
|
||||
android:text="@string/layout_item_live_tag_01"
|
||||
android:textColor="#ffffffff"
|
||||
|
@@ -12,7 +12,7 @@
|
||||
android:id="@+id/tv_delete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_29"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
android:drawableStart="@drawable/ic_trash_common"
|
||||
|
@@ -80,7 +80,7 @@
|
||||
android:id="@+id/tv_pk_mark"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/shape_pk_mic_queue_mark_red"
|
||||
android:gravity="center"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
android:id="@+id/iv_close"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/chat_popup_game_close" />
|
||||
|
@@ -172,7 +172,7 @@
|
||||
android:id="@+id/unread_number_tip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:layout_gravity="right|bottom"
|
||||
android:layout_gravity="end|bottom"
|
||||
android:layout_marginBottom="19dp"
|
||||
android:singleLine="true"
|
||||
android:visibility="gone"
|
||||
|
@@ -54,7 +54,7 @@
|
||||
android:id="@+id/tv_forgetPwd"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:layout_margin="15dp"
|
||||
android:text="@string/layout_view_password_02"
|
||||
android:textColor="@color/blue"/>
|
||||
|
@@ -31,7 +31,7 @@
|
||||
android:id="@+id/gif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|bottom"
|
||||
android:layout_gravity="end|bottom"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:src="@drawable/ic_gif"
|
||||
|
@@ -43,7 +43,7 @@
|
||||
android:id="@+id/iv_team_member_list"
|
||||
android:layout_width="?attr/actionBarSize"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:padding="17dp"
|
||||
android:src="@drawable/icon_team_member_management" />
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
@@ -24,7 +24,7 @@
|
||||
android:id="@+id/iv_select"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|bottom"
|
||||
android:layout_gravity="end|bottom"
|
||||
android:src="@drawable/popup_pitch_101" />
|
||||
</FrameLayout>
|
||||
</layout>
|
@@ -48,7 +48,7 @@
|
||||
android:id="@+id/iv_delete"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="right"
|
||||
android:layout_gravity="end"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/music_icon_search_delete" />
|
||||
</FrameLayout>
|
||||
|
@@ -16,13 +16,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?android:attr/progressBarStyleSmall"
|
||||
android:layout_marginRight="@dimen/dp_4"/>
|
||||
android:layout_marginEnd="@dimen/dp_4"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/loading_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_4"
|
||||
android:layout_marginStart="@dimen/dp_4"
|
||||
android:text="@string/text_more_loading"
|
||||
android:textColor="@color/white_op_30"
|
||||
android:textSize="@dimen/sp_14"/>
|
||||
|
@@ -50,12 +50,12 @@ public class TimeUtils {
|
||||
public static final long MILLIS_OF_SEC = 1000;
|
||||
|
||||
public static String getCurrentDateStr() {
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT, Locale.getDefault());
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT, Locale.ENGLISH);
|
||||
return dateFormat.format(new Date());
|
||||
}
|
||||
|
||||
public static String getCurrentTimeStr() {
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_FORMAT, Locale.getDefault());
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_FORMAT, Locale.ENGLISH);
|
||||
return dateFormat.format(new Date());
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ public class TimeUtils {
|
||||
public static String getDateTimeString(long milliseconds, String format) {
|
||||
String result = null;
|
||||
try {
|
||||
SimpleDateFormat formatter = new SimpleDateFormat(format, Locale.getDefault());
|
||||
SimpleDateFormat formatter = new SimpleDateFormat(format, Locale.ENGLISH);
|
||||
Date date = new Date(milliseconds);
|
||||
result = formatter.format(date);
|
||||
} catch (Exception ex) {
|
||||
@@ -230,7 +230,7 @@ public class TimeUtils {
|
||||
|
||||
public static long getTimeMillis(String time, String format) {
|
||||
try {
|
||||
SimpleDateFormat formatter = new SimpleDateFormat(format, Locale.getDefault());
|
||||
SimpleDateFormat formatter = new SimpleDateFormat(format, Locale.ENGLISH);
|
||||
Date date = formatter.parse(time);
|
||||
return date.getTime();
|
||||
} catch (Exception ex) {
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center"
|
||||
android:layout_gravity="end|center"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="@dimen/action_bar_height"
|
||||
android:orientation="vertical"
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center"
|
||||
android:layout_gravity="end|center"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="@dimen/action_bar_height"
|
||||
android:orientation="vertical"
|
||||
|
@@ -36,7 +36,7 @@
|
||||
android:drawablePadding="5dp"
|
||||
android:drawableEnd="@drawable/nim_arrow_right"
|
||||
android:ellipsize="end"
|
||||
android:gravity="right|center_vertical"
|
||||
android:gravity="end|center_vertical"
|
||||
android:hint="@string/click_set"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
|
@@ -81,7 +81,7 @@
|
||||
android:layout_toEndOf="@id/team_nickname"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawableEnd="@drawable/nim_arrow_right"
|
||||
android:gravity="right|center_vertical"
|
||||
android:gravity="end|center_vertical"
|
||||
android:hint="@string/team_nickname_none"
|
||||
android:textColor="@color/grey"
|
||||
android:textSize="@dimen/text_size_17" />
|
||||
@@ -117,7 +117,7 @@
|
||||
android:layout_toEndOf="@id/team_member_identity"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawableEnd="@drawable/nim_arrow_right"
|
||||
android:gravity="right|center_vertical"
|
||||
android:gravity="end|center_vertical"
|
||||
android:hint="@string/team_nickname_none"
|
||||
android:textColor="@color/grey"
|
||||
android:textSize="@dimen/text_size_17" />
|
||||
|
@@ -23,7 +23,7 @@
|
||||
android:id="@+id/message_item_audio_duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:paddingStart="2dip"
|
||||
android:textColor="@color/color_C6C6E9"
|
||||
android:textSize="12sp"/>
|
||||
|
@@ -32,7 +32,7 @@
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:background="@drawable/nim_message_unread_news_icon_selector"
|
||||
android:contentDescription="@string/empty" />
|
||||
|
||||
|
@@ -48,7 +48,7 @@
|
||||
android:id="@+id/picker_image_preview_send"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="10dip"
|
||||
android:background="@drawable/nim_message_button_bottom_send_selector"
|
||||
android:enabled="true"
|
||||
|
@@ -48,7 +48,7 @@
|
||||
android:id="@+id/buttonSend"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="10dip"
|
||||
android:background="@drawable/nim_message_button_bottom_send_selector"
|
||||
android:enabled="true"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
android:id="@+id/item_detail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right|center_vertical"
|
||||
android:gravity="end|center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
|
@@ -30,7 +30,7 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="right|center"
|
||||
android:layout_gravity="end|center"
|
||||
android:background="@drawable/nim_ic_menu_selector"
|
||||
android:layout_marginEnd="15dp" />
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
@@ -25,7 +25,7 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="right|center"
|
||||
android:layout_gravity="end|center"
|
||||
android:background="@drawable/nim_ic_menu_selector"
|
||||
android:layout_marginEnd="15dp" />
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
android:id="@+id/control_download_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:src="@drawable/nim_icon_download_pause" />
|
||||
</FrameLayout>
|
||||
|
||||
|
Reference in New Issue
Block a user