I'm working with a simple Android view (2 buttons). I've centered the buttons vertically but I noticed they are a little further down than directly center.
From what I can tell they are being centered using the space left over (after the header is put into the view). What I would prefer is that the header is not part of the view or that I could offset the centering by a specific dip (so it looks center instead of offset looking)
Anyone know if this is truly my issue or if you can offset a centered item?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/widget30"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<Button
android:id="@+id/loadViewBtn"
android:layout_width="200dip"
android:layout_height="80dip"
android:text="View"
android:textSize="18sp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
>
</Button>
<Button
android:id="@+id/loadUploadBtn"
android:layout_width="200dip"
android:layout_height="80dip"
android:text="Upload"
android:textSize="18sp"
android:layout_below="@+id/loadViewBtn"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
>
</Button>
</RelativeLayout>