N
Nemolus
Ambitioniertes Mitglied
- 1
Hi, ich habe in einer View ein paar TextView's und Spinner's (LinearLayout). In dem verbleibenden Platz möchte ich vertikal zentriert einen Button platzieren. Das soll auf einem Smartphone, wie auch Tablet funktionieren. Um einen Button immer "bottom" anzuzeigen hilf ja folgendes RelativeLayout:
Aber wie muss man das RelativeLayout für mein Problem verwenden?
HTML:
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Button
android:id="@+id/buttonOnBottom"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="Button on Bottom"
/>
</RelativeLayout>