apkfuckery/com.discord/res/layout/widget_chat_list_adapter_item_embed.xml
2019-02-04 21:05:16 +01:00

21 lines
No EOL
4.9 KiB
XML

<?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" xmlns:fresco="http://schemas.android.com/apk/res-auto">
<RelativeLayout android:orientation="vertical" android:id="@id/chat_list_item_embed_wrap" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_total" android:paddingRight="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/avatar_size_standard">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toLeftOf="@id/chat_list_item_embed_image_tiny">
<TextView android:textSize="9.5sp" android:textColor="@color/theme_grey_1" android:ellipsize="end" android:id="@id/chat_list_item_embed_provider" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/shared_lorum_ipsum_tiny" android:singleLine="true" fontPath="@string/font_whitney_medium" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_icon" android:layout_width="16.0dip" android:layout_height="16.0dip" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" fresco:placeholderImage="?theme_chat_divider_embed" fresco:overlayImage="@drawable/drawable_overlay_image_square" />
<TextView android:textSize="13.75sp" android:textColor="@color/theme_links" android:ellipsize="end" android:id="@id/chat_list_item_embed_title" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:text="@string/shared_lorum_ipsum_tiny" android:maxLines="2" android:layout_toRightOf="@id/chat_list_item_embed_icon" android:lineSpacingMultiplier="1.1" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_name" android:ellipsize="end" android:id="@id/chat_list_item_embed_author" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:text="@string/shared_lorum_ipsum_tiny" android:maxLines="2" android:lineSpacingMultiplier="1.1" fontPath="@string/font_whitney_medium" />
<TextView android:textSize="13.75sp" android:textColor="@color/theme_grey_1" android:ellipsize="end" android:id="@id/chat_list_item_embed_description" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:text="@string/shared_lorum_ipsum_tiny" android:maxLines="10" android:lineSpacingMultiplier="1.1" fontPath="@string/font_whitney_medium" />
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" fresco:placeholderImage="?theme_chat_divider_embed" fresco:overlayImage="@drawable/drawable_overlay_image_square" />
<ImageView android:id="@id/chat_list_item_embed_image_icons" android:background="@drawable/drawable_overlay_image_rect" android:padding="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon_open" android:layout_centerInParent="true" android:contentDescription="@string/shared_empty_string" />
</RelativeLayout>
</LinearLayout>
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_image_tiny" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_marginLeft="12.0dip" android:layout_alignParentRight="true" fresco:placeholderImage="?theme_chat_divider_embed" fresco:actualImageScaleType="center" fresco:overlayImage="@drawable/drawable_overlay_image_square" />
</RelativeLayout>
<View android:id="@id/chat_list_item_embed_divider" android:background="?theme_chat_divider_embed" android:visibility="visible" android:layout_width="2.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/avatar_size_standard" android:layout_alignTop="@id/chat_list_item_embed_wrap" android:layout_alignBottom="@id/chat_list_item_embed_wrap" />
</RelativeLayout>