Created
November 15, 2022 05:11
-
-
Save harsh1772/9bc4e8e352cf3ca165519cc6a82debcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<com.google.android.gms.ads.nativead.NativeAdView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="300dp" | |
android:layout_gravity="center" | |
android:minHeight="50dp" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<ImageView | |
android:id="@+id/ad_app_icon" | |
android:layout_width="60dp" | |
android:layout_height="60dp" | |
android:adjustViewBounds="true" | |
android:paddingEnd="5dp" | |
android:paddingRight="5dp" | |
android:paddingBottom="5dp" /> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<TextView | |
android:id="@+id/ad_headline" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:textColor="@android:color/black" | |
android:textSize="14sp" | |
android:textStyle="bold" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="left" | |
android:background="#FB8C00" | |
android:paddingHorizontal="3dp" | |
android:text="Ad" | |
android:textColor="@android:color/white" | |
android:textSize="12sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<TextView | |
android:id="@+id/ad_advertiser" | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:gravity="bottom" | |
android:textColor="@android:color/black" | |
android:textSize="18sp" | |
android:textStyle="bold" /> | |
<RatingBar | |
android:id="@+id/ad_stars" | |
style="?android:attr/ratingBarStyleSmall" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:isIndicator="true" | |
android:numStars="5" | |
android:progressTint="@android:color/holo_orange_dark" | |
android:stepSize="0.5" /> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<TextView | |
android:id="@+id/ad_body" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="20dp" | |
android:layout_marginRight="20dp" | |
android:lines="1" | |
android:textColor="@android:color/black" | |
android:textSize="14sp" /> | |
<com.google.android.gms.ads.nativead.MediaView | |
android:id="@+id/ad_media" | |
android:layout_width="wrap_content" | |
android:layout_height="0dp" | |
android:layout_gravity="center_horizontal" | |
android:layout_marginTop="3dp" | |
android:layout_weight="1" /> | |
<Button | |
android:id="@+id/ad_call_to_action" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:layout_marginTop="5dp" | |
android:text="Next" | |
android:textSize="18sp" /> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="end" | |
android:orientation="horizontal"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="end" | |
android:orientation="horizontal" | |
android:visibility="gone"> | |
<TextView | |
android:id="@+id/ad_price" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:paddingStart="5dp" | |
android:paddingLeft="5dp" | |
android:paddingEnd="5dp" | |
android:paddingRight="5dp" | |
android:textColor="@android:color/black" | |
android:textSize="12sp" /> | |
<TextView | |
android:id="@+id/ad_store" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:paddingStart="5dp" | |
android:paddingLeft="5dp" | |
android:paddingEnd="5dp" | |
android:paddingRight="5dp" | |
android:textColor="@android:color/black" | |
android:textSize="12sp" /> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> | |
</LinearLayout> | |
</com.google.android.gms.ads.nativead.NativeAdView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment