平板适配

This commit is contained in:
lijia 2022-03-28 10:11:06 +08:00
parent 9a7a46bc46
commit ca7b2a6d11
4 changed files with 48 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:orientation="vertical"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/splash_big"
android:scaleType="centerCrop"></ImageView>
<LinearLayout
android:id="@+id/llCount"
android:layout_width="60dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_marginTop="50dp"
android:layout_marginRight="20dp"
android:background="@drawable/shape_count_downbg"
android:gravity="center"
android:alpha="0.8"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="3"
android:textColor="@color/color_3"
android:textSize="18dp"></TextView>
<TextView
android:layout_marginLeft="3dp"
android:layout_marginTop="2dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="跳过"
android:textColor="@color/color_9"
android:textSize="12dp"></TextView>
</LinearLayout>
</RelativeLayout>

View File

@ -9,8 +9,8 @@
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/splash"
android:scaleType="fitXY"></ImageView>
android:src="@drawable/splash"
android:scaleType="centerCrop"></ImageView>
<LinearLayout
android:id="@+id/llCount"

View File

@ -52,7 +52,8 @@
android:ellipsize="end"
android:hint="请输入账号"
android:maxLength="11"
android:maxLines="1"></EditText>
android:maxLines="1"
android:singleLine="true"></EditText>
</LinearLayout>