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

161 lines
5.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<com.vk.common.view.OverlayFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingLeft="@dimen/post_side_padding"
android:paddingTop="8.0dip"
android:paddingRight="@dimen/post_side_padding"
android:paddingBottom="8.0dip"
app:overlay="@drawable/highlight_post"
app:padOverlay="true">
<FrameLayout
android:layout_width="114.0dip"
android:layout_height="fill_parent">
<com.vk.newsfeed.FrescoImageView
android:id="@id/snippet_image"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:maxHeight="114.0dip"
android:minHeight="80.0dip" />
<ImageView
android:id="@id/iv_link_state"
android:layout_width="36.0dip"
android:layout_height="36.0dip"
android:layout_gravity="center"
android:layout_margin="12.0dip"
android:scaleType="centerInside"
android:src="@drawable/ic_linked_24"
android:tint="#ffbfc8d2"
android:visibility="gone" />
</FrameLayout>
<LinearLayout
android:id="@id/info"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginStart="114.0dip"
android:background="@drawable/attach_fb_right"
android:gravity="center_vertical"
android:minHeight="80.0dip"
android:orientation="vertical"
android:paddingLeft="12.0dip"
android:paddingTop="10.0dip"
android:paddingRight="12.0dip"
android:paddingBottom="10.0dip">
<TextView
android:id="@id/attach_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="35.0dip"
android:ellipsize="end"
android:fontFamily="@string/font_family_medium"
android:maxLines="2"
android:textColor="?text_primary"
android:textSize="15.0sp" />
<LinearLayout
android:id="@id/attach_subtitle_wrap"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="35.0dip">
<TextView
android:id="@id/attach_subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:fontFamily="@font/roboto_regular"
android:singleLine="true"
android:textColor="?text_primary"
android:textSize="14.0sp" />
<com.vtosters.lite.ui.RatingView
android:id="@id/attach_rating"
android:layout_width="88.0dip"
android:layout_height="19.0dip"
android:paddingStart="7.0dip" />
<TextView
android:id="@id/attach_review_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:paddingStart="7.0dip"
android:singleLine="true"
android:textColor="?text_primary"
android:textSize="14.0sp" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@id/iv_amp"
style="@style/AmpSmallIconStyle" />
<TextView
android:id="@id/attach_subsubtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:singleLine="true"
android:textColor="?text_secondary"
android:textSize="14.0sp" />
</LinearLayout>
<TextView
android:id="@id/attach_button"
style="@style/outline_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10.0dip"
android:gravity="center"
android:maxLines="1" />
</LinearLayout>
<ImageView
android:id="@id/attach_snippet_small_remove_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|center|top"
android:layout_marginTop="-16.0dip"
android:layout_marginEnd="@dimen/post_side_padding_negative"
android:src="@drawable/ic_close_attach_36"
android:visibility="gone" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:orientation="horizontal">
<ImageView
android:id="@id/snippet_toggle_fave"
android:layout_width="44.0dip"
android:layout_height="44.0dip"
android:background="@drawable/highlight_circle_white"
android:scaleType="center"
android:src="@drawable/fave_start_button"
android:tint="?icon_secondary"
android:visibility="visible" />
<ImageView
android:id="@id/snippet_actions"
android:layout_width="36.0dip"
android:layout_height="48.0dip"
android:layout_gravity="end|center|top"
android:background="@drawable/highlight_unlimited"
android:scaleType="center"
android:src="@drawable/ic_more_vertical_24"
android:tint="?separator_alpha"
android:visibility="visible" />
</LinearLayout>
</com.vk.common.view.OverlayFrameLayout>