Created
March 31, 2021 12:50
-
-
Save hoanghiephui/fb45e436d20a3d7017264ffc3ae2d74e to your computer and use it in GitHub Desktop.
native_ad_mopub_list_item
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"?> | |
| <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:id="@+id/native_outer_view" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:background="?android:windowBackground" | |
| android:padding="10dp" | |
| android:textDirection="locale"> | |
| <ImageView | |
| android:id="@+id/native_icon_image" | |
| android:layout_width="45dp" | |
| android:layout_height="45dp" | |
| android:background="@null" | |
| android:contentDescription="@null" | |
| app:layout_constraintStart_toStartOf="parent" | |
| app:layout_constraintTop_toTopOf="parent" /> | |
| <androidx.appcompat.widget.AppCompatTextView | |
| android:id="@+id/native_title" | |
| style="@style/TextAppearance.ExposureNotification.Subtitle2" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_marginStart="8dp" | |
| android:layout_marginEnd="8dp" | |
| app:layout_constraintEnd_toStartOf="@+id/native_privacy_information_icon_image" | |
| app:layout_constraintHorizontal_bias="0.0" | |
| app:layout_constraintStart_toEndOf="@+id/native_icon_image" | |
| app:layout_constraintTop_toTopOf="@+id/native_icon_image" | |
| tools:text="Native title" /> | |
| <androidx.appcompat.widget.AppCompatTextView | |
| android:id="@+id/native_text" | |
| style="@style/TextAppearance.ExposureNotification.Subtitle1" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_marginTop="10dp" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintHorizontal_bias="0.0" | |
| app:layout_constraintStart_toStartOf="parent" | |
| app:layout_constraintTop_toBottomOf="@+id/native_icon_image" | |
| app:layout_constraintWidth_default="wrap" | |
| tools:text="The title" /> | |
| <androidx.appcompat.widget.AppCompatImageView | |
| android:id="@+id/native_main_image" | |
| android:layout_width="match_parent" | |
| android:layout_height="@dimen/native_main_image_height" | |
| android:layout_marginTop="10dp" | |
| android:background="@null" | |
| android:scaleType="centerCrop" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintStart_toStartOf="parent" | |
| app:layout_constraintTop_toBottomOf="@+id/native_text" /> | |
| <androidx.appcompat.widget.AppCompatTextView | |
| android:id="@+id/native_sponsored_text_view" | |
| style="@style/TextAppearance.ExposureNotification.Subtitle1" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_marginTop="10dp" | |
| android:layout_marginEnd="10dp" | |
| android:ellipsize="end" | |
| android:lines="1" | |
| android:textColor="?colorPrimary" | |
| android:textSize="12sp" | |
| android:textStyle="bold" | |
| android:visibility="invisible" | |
| app:layout_constraintEnd_toStartOf="@id/native_cta" | |
| app:layout_constraintHorizontal_bias="0.0" | |
| app:layout_constraintStart_toStartOf="@id/native_main_image" | |
| app:layout_constraintTop_toBottomOf="@id/native_main_image" | |
| app:layout_constraintWidth_default="wrap" | |
| tools:text="@tools:sample/cities" | |
| tools:visibility="visible" /> | |
| <com.google.android.material.button.MaterialButton | |
| android:id="@+id/native_cta" | |
| style="@style/Widget.MaterialComponents.Button.UnelevatedButton" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_marginTop="10dp" | |
| android:clickable="true" | |
| android:focusable="true" | |
| android:paddingLeft="6dp" | |
| android:paddingRight="6dp" | |
| android:text="@string/learn_more" | |
| android:textColor="@android:color/white" | |
| android:textSize="12sp" | |
| app:backgroundTint="@color/blue_600" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintTop_toBottomOf="@+id/native_main_image" | |
| app:strokeColor="@color/blue_600" /> | |
| <androidx.appcompat.widget.AppCompatImageView | |
| android:id="@+id/native_privacy_information_icon_image" | |
| android:layout_width="40dp" | |
| android:layout_height="40dp" | |
| android:background="?selectableItemBackground" | |
| android:padding="10dp" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintTop_toTopOf="parent" /> | |
| <TextView | |
| android:id="@+id/textView83" | |
| style="@style/TextAppearance.ExposureNotification.Caption" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_marginStart="8dp" | |
| android:ellipsize="end" | |
| android:lines="1" | |
| android:text="Sponsored" | |
| android:textSize="12sp" | |
| app:layout_constraintStart_toEndOf="@+id/native_icon_image" | |
| app:layout_constraintTop_toBottomOf="@+id/native_title" /> | |
| </androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment