현재 화면을 세 부분으로 나누고 싶은 Android 프로젝트를 진행 중입니다.스크롤 센터가있는 세 가지 구성 요소 사용자 인터페이스
첫 번째 섹션은 화면 상단에 위치하지 않는 제목입니다. 두 번째 섹션은 스크롤 할 수있는 주요 콘텐츠입니다. 세 번째 섹션은 화면 하단에 고정 된 두 개의 버튼입니다.
이 설정에서 상단 및 하단은 화면에 머물러 있으며 화면의 중앙 부분 만 스크롤 할 수 있습니다.
웬일인지, 내가 이것을하려고 노력했을 때, 정상이고 중간의 일은 벌금 그러나 버튼을 가지고있는 바닥은 결코 보이지 않고 있었다. 다음은
난 당신이 제공 할 수있는 어떤 도움이 작업<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/start_eulaTitle"
android:textSize="15dp"
android:textStyle="bold" />
<ScrollView
android:layout_width="fill_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/start_eula" />
</ScrollView>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button android:id="@+id/start_btnAgree"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/button_agree" />
</LinearLayout>
</LinearLayout>
감사를 얻으려고하는 데 사용한 코드입니다.
멋진 답변을 주셔서 감사합니다. – Boardy