2011-05-02 2 views
0

내 활동 화면 하단에 두 개의 버튼을 표시하고 싶지만 화면을 스크롤 할 수있는보기로 채울 때마다 화면 하단에있는 두 개의 버튼이 사라집니다. . 스크롤 할 필요가 없을 때 버튼이 잘 표시됩니다.스크롤해야 할 때마다 레이아웃 표시 문제가 발생합니다.

도와주세요 감사합니다.

레이아웃 코드 XML 버전 = "1.0"인코딩 = "UTF-8">

<LinearLayout 
    android:id="@+id/lin_layout_list_view" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:orientation="vertical" 
     android:isScrollContainer="true" 
     android:paddingLeft="8dp" 
     android:paddingRight="8dp"> 

     <ListView android:id="@+id/android:list" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
     /> 
    </LinearLayout> 

    <RelativeLayout 
     android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:padding="2px" 
      android:layout_gravity="bottom" 
      > 
      <TableLayout 
       android:layout_below="@id/lin_layout_list_view" 
       android:layout_alignParentBottom="true" 
       android:gravity="bottom" 
       android:layout_width ="fill_parent" 
       android:layout_height="wrap_content" 
       android:stretchColumns="0,1"> 

       <TableRow 
        android:orientation="horizontal"> 
        <Button android:id="@+id/ws_button_back" 
         android:layout_width="wrap_content" 
         android:layout_height="wrap_content" 
          android:text=" Back " 
         /> 

        <Button android:id="@+id/ws_button_ok" 
         android:layout_width="wrap_content" 
         android:layout_height="wrap_content" 
          android:text=" Ok "/> 

       </TableRow> 

      </TableLayout>   

     </RelativeLayout> 
</LinearLayout> 

+1

글쎄, 레이아웃에 문제가있을 수 있습니다. 내 생각에, 당신은 그 자신을 생각 해낼 수 있었을 것입니다, 당신은 레이아웃을위한 코드를 보여주고 싶을지도 모릅니다. 그래서 우리는 당신이 무엇이 잘못되었거나 왜 안 있었는지에 관해 조언 할 수 있습니까? – Nanne

+0

레이아웃을 공유해주세요. 감사합니다. – rekaszeru

답변

0

랩에게 스크롤 가능한 콘텐츠와 함께 버튼 (예 : -Listview)? 스크롤 뷰에서 선택한 다음 내용을 표시합니다.

+0

나는 scrollview에서 래핑했지만 여전히 스크롤해야만 내 목록의 맨 아래에 단추를 표시하지 않습니다. 여기 내 레이아웃 코드입니다. – jjjdag

관련 문제