<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#e77d89">
<Button
android:layout_alignParentBottom="true"
android:id="@+id/close"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/close"
/>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/close"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
style="@style/HelpText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/help_part_1"
/>
<TextView
style="@style/HelpText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/help_part_2"
/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Advantage of this solution - no need to specify button size or any margins in dp.
No comments:
Post a Comment