我正在尝试让我的ImageView填充整个屏幕(我不关心宽高比)。但是,fill_parent不起作用,并且据我所知,RelativeLayout没有可设置的背景。
祝好。
祝好。
RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:onClick="toggleAdvice"
ImageView
android:id="@+id/advice_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/pratbubbla_gron"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"