Ich verwende ein lineares Layout, um ein ziemlich helles Startbild anzuzeigen. Es hat eine Schaltfläche, die sowohl horizontal als auch vertikal im Bildschirm zentriert werden soll. Doch egal, was ich versuche, die Schaltfläche wird oben ausrichten Zentrum zu tun. Ich habe die XML unten enthalten, kann jemand mich in die richtige Richtung zeigen?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageButton android:id="@+id/btnFindMe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal"
android:background="@drawable/findme"></ImageButton>
</LinearLayout>