저는 레이아웃에 3 개의 MvxBindableListView 위젯을 성공 시키려고했습니다. 각 MvxBindableListView가 내부 스크롤없이 완전히 표시되고 내 "페이지"를 스크롤 할 수 있도록 이렇게하는 방법이 있습니까?하나의 레이아웃에 여러 개의 MvxBindableListView가 있습니까?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res/MyCurrentProject.Client.UI"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
local:MvxBind="{}" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
local:MvxBind="{}" />
<Mvx.MvxBindableListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="false"
local:MvxBind="{}" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
local:MvxBind="{}" />
<Mvx.MvxBindableListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="false"
local:MvxBind="{}" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
local:MvxBind="{}" />
<Mvx.MvxBindableListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="false"
local:MvxBind="{}" />
</LinearLayout>
</LinearLayout>
여기 빈 바인딩 수 있지만 완전히 작업 : 이 레이아웃입니다. 목록에는 다양한 요소가 있으므로 고정 된 높이를 사용할 수 없습니다.
미리 감사드립니다!
스크롤하지 않고 ScollView를 사용할 수 있도록 MvxBindableListViews의 높이를 목록의 전체 크기로 설정하는 방법이 없습니까? – Ivozor
안드로이드 워드 프로세서 – Stuart
에서 wrap_content를 확인해 보았습니다. 목록의 높이를 1 목록 항목의 높이로 설정했습니다 ... 그리고 목록이 여전히 스크롤 가능합니다 ... ( – Ivozor