【发布时间】:2012-07-04 08:49:43
【问题描述】:
美好的一天!!!
我在 android 的横向布局中遇到了问题。
当我要将方向更改为横向时,ImageView 似乎处于固定位置,我只能在 listview 中看到滚动条...我只想有一个布局,imageview 也可以滚动以便我可以清楚地看到列表项。
这是我的布局 xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:layout_height="wrap_content"
android:contentDescription="@string/app_name"
android:src="@drawable/banner" />
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/imageView1"
android:drawSelectorOnTop="true" />
</RelativeLayout>
【问题讨论】:
标签: android android-layout android-listview android-imageview