Created
November 15, 2022 05:09
-
-
Save harsh1772/3a900302ee3cbb59b9fb1e4336b2cbfc to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:orientation="horizontal" | |
| android:padding="10dp"> | |
| <androidx.cardview.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_weight="1" | |
| card_view:cardCornerRadius="5dp" | |
| card_view:cardElevation="0dp" | |
| card_view:cardUseCompatPadding="false"> | |
| <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" /> | |
| <com.google.android.gms.ads.nativead.MediaView | |
| android:id="@+id/ad_media" | |
| android:layout_width="match_parent" | |
| android:layout_height="110dp" | |
| android:layout_gravity="center" /> | |
| </androidx.cardview.widget.CardView> | |
| <LinearLayout | |
| android:layout_width="0dp" | |
| android:layout_height="110dp" | |
| android:layout_gravity="center" | |
| android:layout_marginHorizontal="10dp" | |
| android:layout_weight="1" | |
| android:orientation="vertical"> | |
| <TextView | |
| android:id="@+id/ad_headline" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:ellipsize="end" | |
| android:maxLines="1" | |
| android:textColor="@android:color/black" | |
| android:textSize="16sp" | |
| android:textStyle="bold" /> | |
| <View | |
| android:layout_width="0dp" | |
| android:layout_height="0dp" | |
| android:layout_weight="1" /> | |
| <TextView | |
| android:id="@+id/ad_body" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:ellipsize="end" | |
| android:maxLines="1" | |
| android:textColor="@android:color/holo_red_dark" | |
| android:textSize="12sp"/> | |
| <View | |
| android:layout_width="0dp" | |
| android:layout_height="0dp" | |
| android:layout_weight="1" /> | |
| <TextView | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:text="Sponsored" | |
| android:textAllCaps="true" | |
| android:textColor="@android:color/darker_gray" | |
| android:textSize="10sp" /> | |
| <Button | |
| android:id="@+id/ad_call_to_action" | |
| android:layout_width="wrap_content" | |
| android:layout_height="40dp" | |
| android:gravity="center" | |
| android:paddingHorizontal="20dp" | |
| android:textColor="@android:color/black" | |
| android:textSize="16sp" /> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:visibility="gone" | |
| android:layout_height="wrap_content"> | |
| <ImageView | |
| android:id="@+id/ad_app_icon" | |
| android:layout_width="60dp" | |
| android:layout_height="60dp" | |
| android:adjustViewBounds="true" | |
| android:paddingEnd="5dp" | |
| android:visibility="gone" | |
| android:paddingRight="5dp" | |
| android:paddingBottom="5dp" /> | |
| <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 | |
| 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> | |
| </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