Files
vtosters/smali/res/layout/holder_situational_suggest.xml
T
2022-06-19 13:11:07 +03:00

108 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@id/publish_suggest_root_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="?background_light"
android:foreground="@drawable/highlight_post"
android:paddingBottom="10.0dip">
<com.vk.imageloader.view.VKImageView
android:id="@id/publish_suggest_default_image"
android:layout_width="48.0dip"
android:layout_height="48.0dip"
android:layout_gravity="start"
android:layout_marginStart="16.0dip"
android:layout_marginTop="16.0dip"
android:layout_marginBottom="16.0dip"
android:scaleType="centerCrop"
app:placeholderImage="@drawable/ic_placeholder_post_48"
app:roundedCornerRadius="4.0dip" />
<com.vk.imageloader.view.VKImageView
android:id="@id/publish_suggest_rounded_image"
android:layout_width="48.0dip"
android:layout_height="48.0dip"
android:layout_gravity="start"
android:layout_marginStart="16.0dip"
android:layout_marginTop="16.0dip"
android:layout_marginBottom="16.0dip"
android:scaleType="centerCrop"
app:placeholderImage="@drawable/ic_placeholder_post_48"
app:roundAsCircle="true" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginStart="76.0dip"
android:layout_marginTop="16.0dip"
android:orientation="vertical">
<TextView
android:id="@id/publish_suggest_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:layout_marginEnd="48.0dip"
android:layout_marginBottom="2.0dip"
android:ellipsize="end"
android:fontFamily="sans-serif"
android:lineSpacingExtra="4.0dip"
android:maxLines="5"
android:textColor="?text_primary"
android:textSize="14.0dip" />
<TextView
android:id="@id/publish_suggest_action_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="48.0dip"
android:ellipsize="end"
android:fontFamily="sans-serif-medium"
android:lineSpacingExtra="6.0dip"
android:paddingTop="2.0dip"
android:paddingBottom="6.0dip"
android:singleLine="true"
android:textColor="?accent"
android:textSize="15.0dip" />
<LinearLayout
android:id="@id/situational_suggest_friends_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="16.0dip"
android:orientation="horizontal"
android:paddingTop="6.0dip"
android:paddingBottom="6.0dip">
<com.vk.core.view.PhotoStripView
android:id="@id/publish_suggest_photo_strip_view"
android:layout_width="wrap_content"
android:layout_height="24.0dip"
android:layout_marginEnd="8.0dip" />
<TextView
android:id="@id/publish_suggest_friends_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:fontFamily="sans-serif"
android:lineSpacingExtra="4.0sp"
android:textColor="?text_secondary"
android:textSize="14.0dip" />
</LinearLayout>
</LinearLayout>
<androidx.appcompat.widget.AppCompatImageView
android:id="@id/publish_suggest_close_image"
android:layout_width="48.0dip"
android:layout_height="48.0dip"
android:layout_gravity="end|center|top"
android:background="@drawable/situational_suggest_close"
android:foreground="@drawable/highlight_circle"
android:padding="12.0dip"
android:scaleType="center"
android:src="@drawable/ic_close_16"
android:tint="?placeholder_icon_foreground_primary" />
</FrameLayout>