apkfuckery/com.discord/res/layout/widget_chat_list_adapter_it...

13 lines
3.3 KiB
XML
Raw Normal View History

2019-02-04 20:05:16 +00:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:background="?android:selectableItemBackground" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_adapter_item_text_avatar" android:layout_marginTop="4.0dip" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" style="@style/Avatar.Standard" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/chat_list_adapter_item_text_avatar">
<RelativeLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="18.0dip" android:layout_marginBottom="4.0dip">
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_name" android:ellipsize="end" android:id="@id/chat_list_adapter_item_text_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxWidth="150.0dip" android:text="@string/shared_lorum_ipsum_tiny" android:singleLine="true" android:layout_alignParentBottom="true" fontPath="@string/font_whitney_medium" />
<TextView android:textSize="9.5sp" android:textColor="@color/theme_white" android:id="@id/chat_list_adapter_item_text_bot" android:background="@drawable/drawable_button_purple_neutral" android:paddingLeft="3.0dip" android:paddingTop="0.5dip" android:paddingRight="3.0dip" android:paddingBottom="0.5dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:text="BOT" android:singleLine="true" android:layout_toRightOf="@id/chat_list_adapter_item_text_name" android:layout_alignParentBottom="true" fontPath="@string/font_whitney_medium" />
<TextView android:textSize="9.5sp" android:textColor="?theme_chat_timestamp" android:ellipsize="end" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_text_timestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:text="@string/shared_time_pm" android:singleLine="true" android:layout_toRightOf="@id/chat_list_adapter_item_text_bot" android:layout_alignParentBottom="true" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
<com.discord.utilities.mg_views.LinkifyTextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:textColorLink="@color/theme_links" android:id="@id/chat_list_adapter_item_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:lineSpacingMultiplier="1.1" fontPath="@string/font_whitney_medium" />
</LinearLayout>
</RelativeLayout>