Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <merge xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:card_view="http://schemas.android.com/apk/res-auto">
- <com.google.android.gms.ads.formats.UnifiedNativeAdView
- android:id="@+id/native_ad_view"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:id="@+id/background"
- android:layout_width="wrap_content"
- android:layout_height="match_parent">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <LinearLayout
- android:id="@+id/lyt_ad"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:minHeight="?attr/actionBarSize"
- android:orientation="horizontal"
- android:padding="3dp">
- <View
- android:layout_width="@dimen/row_spacing"
- android:layout_height="0dp" />
- <RelativeLayout
- android:layout_width="@dimen/img_compact_width"
- android:layout_height="@dimen/img_compact_width"
- android:layout_marginTop="@dimen/row_spacing"
- android:layout_marginBottom="@dimen/row_spacing">
- <com.makeramen.roundedimageview.RoundedImageView
- android:id="@+id/icon"
- android:layout_width="@dimen/img_compact_width"
- android:layout_height="@dimen/img_compact_height"
- android:scaleType="centerCrop"
- android:visibility="gone"
- app:riv_corner_radius="8dip" />
- <androidx.cardview.widget.CardView
- android:id="@+id/card_media_view"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- card_view:cardCornerRadius="8dp"
- card_view:cardElevation="0dp">
- <com.google.android.gms.ads.formats.MediaView
- android:id="@+id/media_view"
- android:layout_width="@dimen/img_compact_width"
- android:layout_height="@dimen/img_compact_height" />
- </androidx.cardview.widget.CardView>
- </RelativeLayout>
- <View
- android:layout_width="@dimen/row_spacing"
- android:layout_height="0dp" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginStart="4dp"
- android:layout_marginLeft="4dp"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:id="@+id/primary"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:lines="1"
- android:text="Head"
- android:textAppearance="@style/Base.TextAppearance.AppCompat.Body2"
- android:textSize="@dimen/text_title_size" />
- <LinearLayout
- android:id="@+id/row_two"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="3dp"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/ad_notification_view"
- android:layout_width="@dimen/gnt_ad_indicator_width"
- android:layout_height="@dimen/gnt_ad_indicator_height"
- android:layout_marginStart="@dimen/gnt_no_margin"
- android:layout_marginLeft="@dimen/gnt_no_margin"
- android:layout_marginTop="@dimen/gnt_ad_indicator_top_margin"
- android:layout_marginEnd="@dimen/gnt_no_margin"
- android:layout_marginRight="@dimen/gnt_no_margin"
- android:background="@drawable/gnt_rounded_corners_shape"
- android:gravity="center"
- android:text="Ad"
- android:textColor="@color/gnt_ad_green"
- android:textSize="@dimen/gnt_ad_indicator_text_size"
- android:textStyle="bold" />
- <LinearLayout
- android:id="@+id/lyt_rating_bar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:orientation="vertical">
- <RatingBar
- android:id="@+id/rating_bar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/gnt_no_margin"
- android:layout_marginTop="@dimen/gnt_no_margin"
- android:layout_marginEnd="@dimen/gnt_no_margin"
- android:layout_marginBottom="@dimen/gnt_no_margin"
- android:lines="1"
- android:numStars="0"
- android:textColor="@color/gnt_gray"
- android:textSize="@dimen/gnt_text_size_small"
- android:visibility="gone">
- </RatingBar>
- </LinearLayout>
- <TextView
- android:id="@+id/secondary"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginStart="@dimen/gnt_no_margin"
- android:layout_marginTop="@dimen/gnt_no_margin"
- android:layout_marginEnd="@dimen/gnt_no_margin"
- android:layout_marginBottom="@dimen/gnt_no_margin"
- android:gravity="top"
- android:lines="1"
- android:text="sub title"
- android:textSize="@dimen/text_sub_title_size" />
- </LinearLayout>
- <Button
- android:id="@+id/cta"
- android:layout_width="match_parent"
- android:layout_height="30dp"
- android:background="@drawable/bg_button_primary"
- android:lines="1"
- android:textColor="@color/gnt_white"
- android:visibility="gone" />
- </LinearLayout>
- <View
- android:layout_width="@dimen/row_spacing"
- android:layout_height="0dp" />
- <View
- android:layout_width="10dp"
- android:layout_height="0dp" />
- </LinearLayout>
- </RelativeLayout>
- </LinearLayout>
- </RelativeLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </com.google.android.gms.ads.formats.UnifiedNativeAdView>
- </merge>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement