私は現在、画面を3つのセクションに分割したいアンドロイドプロジェクトに取り組んでいます。スクロールセンターを持つ3つのコンポーネントのユーザーインターフェイス
最初のセクションは、画面の上部に位置移動しないタイトルであろう。 2番目のセクションはスクロール可能なメインコンテンツです 3番目のセクションは画面の下部に固定された2つのボタンです。
この設定では上部と下部には、画面上にとどまると、画面の唯一の中央部には、スクロール可能になります。私はトップとミドル細かい作業が、ボタンが示されることはありませんしている必要があり下部にこれを実行しようとしたいくつかの理由
、。以下は
私はあなたが提供することができます任意の助けのためにこの作業
<?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