私は、スクロールビューとその下のボタンの2つの子を持つ相対ビューを持っています。これを行うには、このビューをコンテンツにラップしてもらいたい空きスペースを作らず、画面サイズを超えないようにしてください。 どうすればいいですか?誰でも助けてくれる?アンドロイドは、特定のサイズを超えてコンテンツをラップするようにビューを作成します。
ここは私の現在のレイアウトファイルで、動作しません。
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ScrollView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="wrap_content">
....
</ScrollView>
<Button
android:id="@+id/action"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/content"
... />
</RelativeLayout>
android:maxHeight = "その高さでのあなたの身長" –
これは現在どのように見ていますか?あなたはスクリーンショットを添付することができます –