2012-06-09 4 views
0

ListView가있는 레이아웃이 있습니다. 목록이 잘 스크롤되지만 페이지의 다른 콘텐츠가 더 커야하거나 목록 또는 다른 콘텐츠가 화면을 너무 많이 차지해야하므로 스크롤 할 때 모두 필요합니다.안드로이드 - ListView로 레이아웃에서 전체 페이지 스크롤을 활성화하는 방법?

할 수 있습니까? 여기

내가 지금까지 가지고있는 레이아웃입니다 :

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     > 

<include android:id="@+id/header" 
     layout="@layout/header" 
     android:layout_height="wrap_content" 
     android:layout_width="fill_parent"/>  

<TextView 
    android:id="@+id/view_name"  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Business:" 
    />  

<TextView 
    android:id="@+id/business_privacy"  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Loading..." 
    />  

<TextView 
    android:id="@+id/think"  
    android:layout_width="fill_parent" 
    android:layout_marginTop ="5dp" 
    android:textColor="@color/light_best_blue" 
    android:paddingLeft="10px" 
    android:layout_height="wrap_content" 
    android:text="Fill out each section below" 
    />  

    <ListView 
    android:id="@android:id/list" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="@+id/label" 
     android:textSize="20px" 
     >   
    </ListView> 

</LinearLayout> 

사용자가 텍스트를 차지하더라도 텍스트와 목록을 모두 볼 수있을 것이 쉽게 만들 수있는 방법이 될 것입니다 무엇 전체 화면? 텍스트를 스크롤 가능하게 만들 수 있습니까? 특히 가로보기에서는 좋지 않으므로 멋지게 연출할 수 있도록 몇 가지 UI가 있어야한다고 생각합니다.

조언 해 주셔서 감사합니다.

답변

1
이 목록을 스크롤받을 수 있도록 목록보기의 헤더에 더 큰 텍스트가

1을 넣어 텍스트 뷰 ...

2

또는

같은 고정 된 크기와 다른 스크롤 뷰에서 텍스트 뷰를 넣어 화면의 1/3.

또는

3 -

1

당신은 콘텐츠 랩을, 또는 HorizontalScrollView을 사용하여 콘텐츠를 마무리 할 수 ​​중 하나. 그것에 대한 안드로이드 문서는 here 찾을 수 있습니다.

관련 문제