layout_aboveは、あなたがRelativeLayout
を使用してこれを行うと、使用することができます使用alignments
とmargins
。あなたのケースで
Screen_height-バナーが画面の高さを表しており、あなたが一番下にそれを配置し、あなたの代わりにスクロールビューを拡張する必要がある場合は、あなたのXMLが
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="5dp">
</RelativeLayout >
だろう端から5DPセパレータを作りたい場合それはあなたのxmlになるでしょう
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding_bottom="5dp">
<ScrollView
android:layout_width="wrap_content"
android:layout_height="fill_parent">
</RelativeLayout >
API APIレベル8以上は「fill_parent」を「match_parent」に置き換えました。 – Antonin