Commit 0db316ae authored by fallenstardust's avatar fallenstardust

优化卡盒叠放布局方式,避免错位

parent 63f77d02
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
android:src="@drawable/unknown" /> android:src="@drawable/unknown" />
<ImageView <ImageView
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/box"/> android:src="@drawable/box"/>
...@@ -87,4 +87,4 @@ ...@@ -87,4 +87,4 @@
android:textSize="6sp" /> android:textSize="6sp" />
</LinearLayout> </LinearLayout>
</FrameLayout> </RelativeLayout>
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment