1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-17 23:15:10 -05:00

On the initial welcome page, don't scroll the 'next' button off the

page.
This commit is contained in:
Jesse Vincent 2009-11-13 23:42:52 +00:00
parent 4a2c94938a
commit a377c18826

View File

@ -1,19 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="fill_parent" android:layout_width="fill_parent">
android:layout_height="fill_parent">
<ListView <ListView
android:id="@android:id/list" android:id="@android:id/list"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
/> />
<ScrollView <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_marginBottom="50dip"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_height="fill_parent" android:layout_width="fill_parent">
android:scrollbarStyle="outsideInset">
<LinearLayout <LinearLayout
android:id="@+id/empty" android:id="@+id/empty"
android:layout_width="fill_parent" android:layout_width="fill_parent"
@ -25,17 +23,18 @@
android:textSize="14sp" android:textSize="14sp"
android:text="@string/accounts_welcome" android:text="@string/accounts_welcome"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
android:padding="8dip" android:padding="8dip"/>
/>
<View <View
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="0dip" android:layout_height="0dip"
android:layout_weight="1" /> android:layout_weight="1" />
</LinearLayout>
</ScrollView>
<RelativeLayout <RelativeLayout
android:layout_width="fill_parent" android:layout_marginTop="-50dip"
android:layout_height="54dip" android:gravity="bottom"
android:gravity="bottom|right" android:layout_height="wrap_content"
> android:layout_width="fill_parent">
<Button <Button
android:id="@+id/add_new_account" android:id="@+id/add_new_account"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -44,8 +43,7 @@
android:text="@string/next_action" android:text="@string/next_action"
android:drawableRight="@drawable/button_indicator_next" android:drawableRight="@drawable/button_indicator_next"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" /> android:layout_centerVertical="false"
/>
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
</ScrollView>
</FrameLayout>