MvxListView不能水平显示

时间:2014-03-12 00:52:21

标签: android mvvmcross

在我的Android应用程序中,我创建了一个垂直布局,用于在列表中选定图像的较大视图上方保存水平图像列表(缩略图)。出于某种原因,我不能让水平列表水平显示,它只显示为垂直列表。

        <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="0dp"
        android:layout_weight="15">
        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <Mvx.MvxListView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                local:MvxBind="ItemsSource Images"
                local:MvxItemTemplate="@layout/image_item" />
        </LinearLayout>
        <ImageView
            android:src="@drawable/BDSeal"
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:layout_margin="10.0dp"
            android:id="@+id/imageView1" />
    </LinearLayout>

1 个答案:

答案 0 :(得分:3)

在Android中,系统ListView只是垂直的。

有开源水平列表视图可用 - 例如,一旦提供http://blog.ostebaronen.dk/2012/12/horizontal-listview-for-mono-for-android.html的cheesebaron - 我认为最近已更新。

还有一些人使用PageAdapter来显示这种类型的水平滚动列表。

相关问题