|
|
@@ -1,36 +1,14 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<LinearLayout 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:layout_centerInParent="true"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/ad_iv"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:adjustViewBounds="true"
|
|
|
- android:scaleType="fitXY"/>
|
|
|
- <VideoView
|
|
|
- android:id="@+id/ad_video_view"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
- <TextView
|
|
|
- android:id="@+id/ad_msg"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
- </LinearLayout>
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/ad_skip"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
+ android:layout_gravity="end"
|
|
|
android:layout_margin="@dimen/content_padding_20"
|
|
|
android:background="@drawable/shape_ash_solid_rectangle_small"
|
|
|
android:paddingBottom="2dp"
|
|
|
@@ -40,13 +18,33 @@
|
|
|
android:text="跳过"
|
|
|
android:textColor="#918F8F"
|
|
|
android:textSize="14sp" />
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ad_iv"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:scaleType="fitXY"/>
|
|
|
+ <VideoView
|
|
|
+ android:id="@+id/ad_video_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/ad_msg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:lineSpacingExtra="5dp"
|
|
|
+ android:scrollbars="vertical"
|
|
|
+ android:text="@string/app_name"
|
|
|
+ android:textColor="#939393"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/know_ad_tv"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
+ android:layout_gravity="end"
|
|
|
android:layout_margin="@dimen/content_padding_20"
|
|
|
android:background="@drawable/shape_ash_solid_rectangle_small"
|
|
|
android:paddingBottom="2dp"
|
|
|
@@ -57,4 +55,4 @@
|
|
|
android:textColor="#918F8F"
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
-</RelativeLayout>
|
|
|
+</LinearLayout>
|