add ad showing test

This commit is contained in:
hyb1996
2017-07-07 13:51:26 +08:00
parent 8b0fe61c87
commit 46cd89d5a5
12 changed files with 331 additions and 10 deletions

View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:gravity="center">
<ImageView
android:id="@+id/logo"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:src="@drawable/ic_android_eat_js">
</ImageView>
<RelativeLayout
android:id="@+id/ad_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/ad"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<TextView
android:id="@+id/skip_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_margin="16dp"
android:background="@drawable/skip_circle_bg"
android:gravity="center"
android:textColor="@android:color/white"
android:textSize="14sp"
android:visibility="invisible"
tools:text="跳过"/>
</RelativeLayout>
</FrameLayout>