apkfuckery/com.discord/res/layout/widget_notice_popup.xml

12 lines
2.4 KiB
XML
Raw Normal View History

2020-05-17 12:40:10 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-09-28 19:40:16 +00:00
<RelativeLayout android:maxWidth="@dimen/popup_notif_max_width" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal"
2020-05-17 12:40:10 +00:00
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
2020-09-28 19:40:16 +00:00
<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>