この種の問題は検索が難しく、画像で最もよく説明されます。これが私の現在の画像です。
ボタンは下部にありますが、String4の値を読み取ることができません。パディング、layout_margin、layout_widthやlayout_heightの変更などを試しましたが、無駄でした。誰かがここで私を助けることができますか?どんな情報でも大歓迎です。
私のレイアウトは
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/labelInfo"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/priceInfo"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/description"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/brand"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Button
android:id="@+id/goToUrl"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="@string/buy" />
</RelativeLayout>
</RelativeLayout>
最初のTextViewの値は非常に長くなる可能性があるため、スクロールバーがあることに注意してください。1つの解決策はListviewを使用することですが、最後の手段としてそれを維持しています。
ありがとう