apkfuckery/com.discord/res/layout/widget_notice_popup.xml
2020-11-12 02:11:44 +00:00

12 lines
No EOL
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:maxWidth="@dimen/popup_notif_max_width" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/popup_icon" android:visibility="visible" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" style="@style/Avatar.Medium" />
<RelativeLayout android:id="@id/popup_title_wrap" android:layout_marginTop="10.0dip" android:layout_marginBottom="8.0dip" android:layout_marginStart="8.0dip" android:layout_toStartOf="@id/popup_close_btn" android:layout_toEndOf="@id/popup_icon" style="@style/UiKit.ViewGroup">
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textColor="?colorHeaderSecondary" android:id="@id/popup_title" android:text="@string/sample_server_name" style="@style/UiKit.TextView.SingleLine" />
<TextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textColor="?colorHeaderSecondary" android:id="@id/popup_subtitle" android:lineSpacingMultiplier="1.0" android:layout_marginStart="4.0dip" android:layout_toEndOf="@id/popup_title" style="@style/UiKit.TextView.SingleLine" />
</RelativeLayout>
<com.discord.utilities.view.text.SimpleDraweeSpanTextView android:ellipsize="end" android:id="@id/popup_body" android:layout_width="fill_parent" android:layout_marginTop="2.0dip" android:text="@string/sample_channel_message" android:maxLines="3" android:layout_below="@id/popup_title_wrap" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Large" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/popup_attachment" android:visibility="gone" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginTop="8.0dip" android:layout_below="@id/popup_body" app:actualImageScaleType="centerCrop" app:placeholderImage="?colorBackgroundSecondary" app:placeholderImageScaleType="centerInside" app:roundedCornerRadius="4.0dip" />
<ImageView android:layout_gravity="center|top" android:id="@id/popup_close_btn" android:paddingTop="8.0dip" android:paddingBottom="6.0dip" android:contentDescription="@string/dismiss" android:paddingStart="4.0dip" android:paddingEnd="0.0dip" android:layout_alignParentEnd="true" style="@style/UiKit.ImageView.Clickable" />
</RelativeLayout>