-4
我怎样才能把TextView
完全ImageView
下面? 我写下面的代码,但它把TextView
以下的图像保证金, 我也尝试不同的scaleType
为ImageView
。的LinearLayout不能正常工作
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/list_row_logo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:padding="0dp"
android:src="@drawable/nature_bg" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello" />
</LinearLayout>
加上'机器人:adjustViewBounds = “真”'在ImageView的XML。 –
@mohammad你可以发布或'nature_bg'图片吗?它可能有空白空间 – user1140237
user114 ...图像没有空白,我敢肯定。 – Mohammad