1
는 지금은이 레이아웃이 있습니다안드로이드 - 내부에 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"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="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/problem_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Loading..."
/>
-->
<TextView
android:id="@+id/business_privacy"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Loading..."
/>
<Button
android:id="@+id/learn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop ="5dp"
android:text="Learn About Business Topics Below"
android:textColor="@color/light_best_blue"
/>
<ListView
android:id="@android:id/list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@+id/label"
android:textSize="20px" >
</ListView>
<Button
android:id="@+id/extra_help"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop ="5dp"
android:text="If You Need Help Planning"
android:textColor="@color/light_best_blue"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>
을하지만 깨진 레이아웃을 보여줍니다.
ListView를 사용하여 항목 목록을로드 한 다음 그 아래에 단추를 추가하십시오.
어떻게 수행 할 수 있습니까?
감사합니다.
푸터 아이디어가 흥미 롭습니다. 그러나이 페이지에만 특정한 것을 추가하고 싶습니다. 이 레이아웃을 변경하여 목록 아래의 마지막 버튼 만 표시하도록 할 수 있습니까? – GeekedOut
무슨 뜻인지 잘 모르겠습니다. 꼬리말은 설정 한 목록보기에만 적용됩니다. 어쩌면 스크롤 할 수있는 것을 보여주는 다이어그램을 만들면 도움이 될 것입니다. 일반적으로 화면 이동 목록의 위쪽/아래쪽에 무언가를 표시하려면 바닥 글을 사용하는 것이 좋습니다. – Jords