RTL适配:私聊-消息适配、全局性的布局属性替换(layout_alignParentLeft、layout_alignParentRight、layout_toLeftOf、layout_toRightOf)
This commit is contained in:
18
nim_uikit/res/drawable-ldrtl/bg_nim_water_drop_other.xml
Normal file
18
nim_uikit/res/drawable-ldrtl/bg_nim_water_drop_other.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<padding
|
||||
android:left="15dp"
|
||||
android:top="13dp"
|
||||
android:right="15dp"
|
||||
android:bottom="13dp" />
|
||||
|
||||
<corners android:bottomLeftRadius="16dp"
|
||||
android:bottomRightRadius="16dp"
|
||||
android:topLeftRadius="16dp"
|
||||
android:topRightRadius="4dp"/>
|
||||
|
||||
<solid android:color="@color/white"/>
|
||||
|
||||
</shape>
|
18
nim_uikit/res/drawable-ldrtl/bg_nim_water_drop_self.xml
Normal file
18
nim_uikit/res/drawable-ldrtl/bg_nim_water_drop_self.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<padding
|
||||
android:left="15dp"
|
||||
android:top="13dp"
|
||||
android:right="15dp"
|
||||
android:bottom="13dp" />
|
||||
|
||||
<corners android:topRightRadius="16dp"
|
||||
android:topLeftRadius="4dp"
|
||||
android:bottomRightRadius="16dp"
|
||||
android:bottomLeftRadius="16dp"/>
|
||||
|
||||
<solid android:color="#FFFCEBCA"/>
|
||||
|
||||
</shape>
|
@@ -35,7 +35,7 @@
|
||||
android:id="@+id/team_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/announce_title"
|
||||
android:layout_alignStart="@id/announce_title"
|
||||
android:layout_below="@id/announce_title"
|
||||
android:layout_marginTop="5dip"
|
||||
android:text="team name"
|
||||
@@ -49,7 +49,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBaseline="@id/team_name"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_toRightOf="@id/team_name"
|
||||
android:layout_toEndOf="@id/team_name"
|
||||
android:text="@string/layout_nim_advanced_team_announce_list_item_01"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
android:textSize="@dimen/text_size_13" />
|
||||
|
@@ -56,7 +56,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dip"
|
||||
android:layout_marginTop="5dip"
|
||||
android:layout_toRightOf="@id/team_head_image"
|
||||
android:layout_toEndOf="@id/team_head_image"
|
||||
android:text="Team Name"
|
||||
android:textColor="@color/color_black_333333"
|
||||
android:textSize="@dimen/text_size_17" />
|
||||
@@ -66,7 +66,7 @@
|
||||
android:id="@+id/team_id"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/team_name"
|
||||
android:layout_alignStart="@id/team_name"
|
||||
android:layout_below="@id/team_name"
|
||||
android:layout_marginTop="8dip"
|
||||
android:text="creator"
|
||||
@@ -79,7 +79,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/team_id"
|
||||
android:layout_marginStart="12dip"
|
||||
android:layout_toRightOf="@id/team_id"
|
||||
android:layout_toEndOf="@id/team_id"
|
||||
android:text="@string/layout_nim_advanced_team_info_activity_01"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
android:textSize="@dimen/text_size_13" />
|
||||
@@ -89,7 +89,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/temp_text_with"
|
||||
android:layout_toRightOf="@id/temp_text_with"
|
||||
android:layout_toEndOf="@id/temp_text_with"
|
||||
android:text="2015-02-22"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
android:textSize="@dimen/text_size_13" />
|
||||
@@ -99,7 +99,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@id/team_create_time"
|
||||
android:layout_toRightOf="@id/team_create_time"
|
||||
android:layout_toEndOf="@id/team_create_time"
|
||||
android:text="@string/layout_nim_advanced_team_info_activity_02"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
android:textSize="@dimen/text_size_13" />
|
||||
@@ -107,7 +107,7 @@
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/nim_arrow_right" />
|
||||
</RelativeLayout>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
android:id="@+id/item_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginTop="17dip"
|
||||
android:gravity="center_vertical"
|
||||
@@ -30,9 +30,9 @@
|
||||
android:id="@+id/item_detail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignTop="@id/item_title"
|
||||
android:layout_toRightOf="@id/item_title"
|
||||
android:layout_toEndOf="@id/item_title"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawableEnd="@drawable/nim_arrow_right"
|
||||
android:ellipsize="end"
|
||||
|
@@ -76,9 +76,9 @@
|
||||
android:id="@+id/team_nickname_detail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_toRightOf="@id/team_nickname"
|
||||
android:layout_toEndOf="@id/team_nickname"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawableEnd="@drawable/nim_arrow_right"
|
||||
android:gravity="right|center_vertical"
|
||||
@@ -112,9 +112,9 @@
|
||||
android:id="@+id/team_member_identity_detail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_toRightOf="@id/team_member_identity"
|
||||
android:layout_toEndOf="@id/team_member_identity"
|
||||
android:drawablePadding="5dp"
|
||||
android:drawableEnd="@drawable/nim_arrow_right"
|
||||
android:gravity="right|center_vertical"
|
||||
|
@@ -13,7 +13,7 @@
|
||||
android:id="@+id/textViewName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/imageViewHeader"
|
||||
android:layout_toEndOf="@id/imageViewHeader"
|
||||
android:layout_marginStart="@dimen/dp_14"
|
||||
android:layout_centerVertical="true"
|
||||
android:maxLines="1"
|
||||
|
@@ -46,7 +46,7 @@
|
||||
android:id="@+id/textViewName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/frameLayoutHead"
|
||||
android:layout_toEndOf="@id/frameLayoutHead"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:ellipsize="end"
|
||||
|
@@ -26,7 +26,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginStart="10dip"
|
||||
android:layout_marginEnd="10dip"
|
||||
android:layout_marginTop="10dip"
|
||||
|
@@ -16,7 +16,7 @@
|
||||
android:id="@+id/contact_list_view"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_toLeftOf="@+id/liv_index"
|
||||
android:layout_toStartOf="@+id/liv_index"
|
||||
android:cacheColorHint="@color/transparent"
|
||||
android:divider="@color/transparent"
|
||||
android:dividerHeight="0dp"
|
||||
@@ -49,7 +49,7 @@
|
||||
android:id="@+id/liv_index"
|
||||
android:layout_width="15dip"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="#00000000"/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
android:id="@+id/head_layout"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:gravity="center">
|
||||
|
||||
<com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
||||
@@ -24,7 +24,7 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/head_layout"
|
||||
android:layout_toEndOf="@id/head_layout"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
@@ -35,7 +35,7 @@
|
||||
android:id="@+id/contacts_item_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="10dip"
|
||||
android:layout_marginEnd="10dp"
|
||||
@@ -48,9 +48,9 @@
|
||||
android:id="@+id/contacts_item_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_toLeftOf="@id/contacts_item_time"
|
||||
android:layout_toStartOf="@id/contacts_item_time"
|
||||
android:drawablePadding="4dip"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
<View
|
||||
style="@style/horizontal_light_thin_divider"
|
||||
android:layout_alignLeft="@+id/contacts_item_name_layout"
|
||||
android:layout_alignStart="@+id/contacts_item_name_layout"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="10dp"/>
|
||||
|
||||
|
@@ -38,7 +38,7 @@
|
||||
style="@style/list_view"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_toLeftOf="@+id/liv_index"
|
||||
android:layout_toStartOf="@+id/liv_index"
|
||||
android:cacheColorHint="@color/white"
|
||||
android:divider="@color/transparent"
|
||||
android:listSelector="@color/transparent"
|
||||
@@ -72,7 +72,7 @@
|
||||
android:id="@+id/liv_index"
|
||||
android:layout_width="15dip"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="#00000000" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
android:id="@+id/btnSelect"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="34dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="6dip"
|
||||
android:layout_marginEnd="6dip"
|
||||
@@ -107,7 +107,7 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@id/btnSelect"
|
||||
android:layout_toStartOf="@id/btnSelect"
|
||||
android:layout_weight="1"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
@@ -22,7 +22,7 @@
|
||||
android:layout_height="@dimen/avatar_size_in_contact"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_toRightOf="@id/imgSelect" />
|
||||
android:layout_toEndOf="@id/imgSelect" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/name_layout"
|
||||
@@ -31,7 +31,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="10dip"
|
||||
android:layout_marginEnd="20dip"
|
||||
android:layout_toRightOf="@+id/img_head"
|
||||
android:layout_toEndOf="@+id/img_head"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
<TextView
|
||||
@@ -49,9 +49,9 @@
|
||||
<View
|
||||
android:id="@+id/bottomLine"
|
||||
style="@style/horizontal_light_thin_divider"
|
||||
android:layout_alignLeft="@+id/name_layout"
|
||||
android:layout_alignStart="@+id/name_layout"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_toRightOf="@id/imgSelect" />
|
||||
android:layout_toEndOf="@id/imgSelect" />
|
||||
|
||||
</RelativeLayout>
|
@@ -12,7 +12,7 @@
|
||||
android:id="@+id/easy_dialog_title_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@null"
|
||||
android:contentDescription="@string/empty"
|
||||
@@ -25,7 +25,7 @@
|
||||
style="@style/dialog_title_text_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/easy_dialog_title_button"
|
||||
android:layout_toEndOf="@+id/easy_dialog_title_button"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical" />
|
||||
</RelativeLayout>
|
||||
|
@@ -26,7 +26,7 @@
|
||||
android:id="@+id/menu_select_icon"
|
||||
android:layout_marginEnd="10dip"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@id/menu_button"
|
||||
android:layout_toStartOf="@id/menu_button"
|
||||
android:background="@drawable/nim_picker_image_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -26,7 +26,7 @@
|
||||
android:id="@+id/message_item_portrait_left"
|
||||
android:layout_width="@dimen/avatar_size_in_session"
|
||||
android:layout_height="@dimen/avatar_size_in_session"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_below="@id/message_item_time"
|
||||
android:layout_marginEnd="11dp"
|
||||
android:visibility="gone"
|
||||
@@ -36,7 +36,7 @@
|
||||
android:id="@+id/message_item_portrait_right"
|
||||
android:layout_width="@dimen/avatar_size_in_session"
|
||||
android:layout_height="@dimen/avatar_size_in_session"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_below="@id/message_item_time"
|
||||
android:layout_marginStart="11dp"
|
||||
android:visibility="gone" />
|
||||
@@ -46,8 +46,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/message_item_time"
|
||||
android:layout_toLeftOf="@id/message_item_portrait_right"
|
||||
android:layout_toRightOf="@id/message_item_portrait_left"
|
||||
android:layout_toStartOf="@id/message_item_portrait_right"
|
||||
android:layout_toEndOf="@id/message_item_portrait_left"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
@@ -57,7 +57,7 @@
|
||||
android:layout_below="@id/message_item_time"
|
||||
android:layout_marginBottom="3dp"
|
||||
android:layout_marginEnd="3dp"
|
||||
android:layout_toRightOf="@id/message_item_portrait_left"
|
||||
android:layout_toEndOf="@id/message_item_portrait_left"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
|
@@ -15,7 +15,7 @@
|
||||
android:id="@+id/message_item_audio_playing_animation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:background="@drawable/nim_audio_animation_list_left"
|
||||
android:contentDescription="@string/empty"/>
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:autoLink="phone|email|web"
|
||||
android:gravity="center_vertical|left"
|
||||
android:gravity="center_vertical|start"
|
||||
android:includeFontPadding="false"
|
||||
android:lineSpacingExtra="3dip"
|
||||
android:maxWidth="238dp"
|
||||
|
@@ -12,7 +12,7 @@
|
||||
android:id="@+id/message_item_unsupport_image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:contentDescription="@string/empty"
|
||||
@@ -24,7 +24,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="6dip"
|
||||
android:layout_marginEnd="4dip"
|
||||
android:layout_toRightOf="@id/message_item_unsupport_image"
|
||||
android:layout_toEndOf="@id/message_item_unsupport_image"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
|
@@ -57,7 +57,7 @@
|
||||
android:layout_marginStart="10dip"
|
||||
android:layout_marginEnd="10dip"
|
||||
android:background="@drawable/nim_picker_preview_btn_selector"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:paddingStart="8dip"
|
||||
android:paddingEnd="8dip"
|
||||
@@ -71,7 +71,7 @@
|
||||
android:id="@+id/picker_bottombar_select"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="10dip"
|
||||
android:layout_marginEnd="10dip"
|
||||
|
@@ -22,7 +22,7 @@
|
||||
android:id="@+id/picker_photo_grid_item_select"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:contentDescription="@null"
|
||||
android:layout_margin="5dp"/>
|
||||
|
@@ -21,7 +21,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/popup_menu_icon"
|
||||
android:layout_toEndOf="@+id/popup_menu_icon"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/white"
|
||||
|
@@ -21,7 +21,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/popup_menu_icon"
|
||||
android:layout_toEndOf="@+id/popup_menu_icon"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
|
@@ -21,7 +21,7 @@
|
||||
android:id="@+id/portrait_panel"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true">
|
||||
|
||||
<com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
||||
@@ -39,7 +39,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_toRightOf="@id/portrait_panel"
|
||||
android:layout_toEndOf="@id/portrait_panel"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false"
|
||||
android:singleLine="true"
|
||||
@@ -55,7 +55,7 @@
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_marginEnd="40dip"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_toRightOf="@id/portrait_panel"
|
||||
android:layout_toEndOf="@id/portrait_panel"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
@@ -95,7 +95,7 @@
|
||||
android:id="@+id/tv_date_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginEnd="10dip"
|
||||
android:layout_marginTop="16dip"
|
||||
@@ -106,7 +106,7 @@
|
||||
android:id="@+id/unread_number_tip"
|
||||
android:layout_width="16dip"
|
||||
android:layout_height="16dip"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_below="@id/tv_nickname"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="10dip"
|
||||
@@ -120,7 +120,7 @@
|
||||
android:id="@+id/unread_number_explosion"
|
||||
android:layout_width="35dip"
|
||||
android:layout_height="35dip"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_below="@id/tv_nickname"
|
||||
android:layout_marginEnd="6dip"
|
||||
android:gravity="center"
|
||||
|
@@ -21,7 +21,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:textColor="@color/grey"
|
||||
android:text="@string/empty"
|
||||
@@ -29,13 +29,13 @@
|
||||
android:textSize="@dimen/text_size_16"/>
|
||||
|
||||
<TextView
|
||||
android:layout_toRightOf="@id/item_title"
|
||||
android:layout_toEndOf="@id/item_title"
|
||||
android:id="@+id/item_detail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right|center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
|
@@ -46,7 +46,7 @@
|
||||
android:id="@+id/textViewName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/frameLayoutHead"
|
||||
android:layout_toEndOf="@id/frameLayoutHead"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:ellipsize="end"
|
||||
|
@@ -10,7 +10,7 @@
|
||||
android:id="@+id/user_profile_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:textColor="@color/color_black_ff333333"
|
||||
android:textSize="16sp"/>
|
||||
@@ -19,7 +19,7 @@
|
||||
android:id="@+id/user_profile_toggle"
|
||||
android:layout_width="58dip"
|
||||
android:layout_height="36.67dip"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"/>
|
||||
|
||||
<View
|
||||
|
@@ -32,7 +32,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/trans_fail_icon"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_toRightOf="@+id/refreshing_indicator"
|
||||
android:layout_toEndOf="@+id/refreshing_indicator"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/color_black_333333"
|
||||
android:textSize="16sp" />
|
||||
|
@@ -114,7 +114,7 @@
|
||||
android:id="@+id/lblVideoFileInfo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/videoView"
|
||||
android:layout_alignStart="@id/videoView"
|
||||
android:layout_below="@id/videoView"
|
||||
android:layout_marginTop="10dip"
|
||||
android:textColor="@color/color_grey_999999"
|
||||
|
@@ -377,12 +377,12 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
|
||||
setGravity(bodyContainer, Gravity.CENTER);
|
||||
} else {
|
||||
if (isReceivedMessage()) {
|
||||
setGravity(bodyContainer, Gravity.LEFT);
|
||||
setGravity(bodyContainer, Gravity.START);
|
||||
contentContainer.setBackgroundResource(leftBackground());
|
||||
// contentContainer.setAlpha(0);
|
||||
// contentContainer.animate().alpha(1f).setDuration(2000).start();
|
||||
} else {
|
||||
setGravity(bodyContainer, Gravity.RIGHT);
|
||||
setGravity(bodyContainer, Gravity.END);
|
||||
contentContainer.setBackgroundResource(rightBackground());
|
||||
// contentContainer.setAlpha(0);
|
||||
// contentContainer.animate().alpha(1f).setDuration(2000).start();
|
||||
|
Reference in New Issue
Block a user