2013-01-16 2 views
0

, 내가 맨 위에 목록보기 및 하부 메뉴 표시 줄을 표시하는 대화를 원하는 바닥 + 자동 크기 조정 대화 상자에서 상단과 용기의 동적 목록보기와 대화 ... 안드로이드 - 사실

내가 원하는 대화는에 크기의 조정 목록보기를 설정 목록보기 및 하단 바

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:background="@drawable/bg" > 

<ListView 
    android:id="@+id/llList" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_above="@+id/illBottom" 
    android:layout_alignParentTop="true" 
    android:choiceMode="multipleChoice" > 
</ListView> 

<com.actionbarsherlock.internal.widget.IcsLinearLayout 
    android:id="@+id/illBottom" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_alignParentBottom="true" 
    android:paddingLeft="4dip" 
    android:paddingRight="4dip" > 

    ... 

</com.actionbarsherlock.internal.widget.IcsLinearLayout> 

illBottom 위에 수없이 상대적 위치에있는 LinearLayout가, 목록보기가 그것을 내가 가진 방법을 설정 ... 표시되지 않는, 대화 상자가 있습니다 항상 최대 크기 (wrap_content for 작동하지 않는 ListView에 ...)

+0

는 왜 상대 레이아웃을 사용합니까? – njzk2

+0

실제로, 아래 막대가 항상 나타나기를 원하기 때문에 목록보기의 크기가 아무리 크다고해도 – prom85

답변

0

아마 빌드 - 인 - 목록이 당신을 위해 작업을 수행합니다

AlertDialog.Builder builder = new AlertDialog.Builder(this); 
builder.setSingleChoiceItems(....