Hi, ich habe das Problem das ich keine Elemente ganz am Rand anordnen kann. Egal welches Layout ich verwende, es bleiben immer oben, unten sowie links und rechts ränder. Nur das Hintergrundbild füllt das Display komplett
Mein XML dazu:
XML: Relative Layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
android:id="@+id/layoutMain"
android:screenOrientation="landscape"
android:background="@drawable/hintergrund2"
android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageViewBallon"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<ImageView
android:layout_width="200dp"
android:layout_height="50dp"
android:id="@+id/imageViewPruefung"
android:layout_alignParentTop="true"
android:layout_alignLeft="@+id/imageViewLernen"
android:layout_alignStart="@+id/imageViewLernen" />
<ImageView
android:layout_width="140dp"
android:layout_height="50dp"
android:id="@+id/imageViewLernen"
android:layout_alignBottom="@+id/imageViewGerman"
android:layout_centerHorizontal="true" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageViewLanguage"
android:layout_toRightOf="@+id/imageViewLernen"
android:layout_toEndOf="@+id/imageViewLernen"
android:layout_marginLeft="31dp"
android:layout_marginStart="31dp"
android:layout_marginTop="41dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageViewGerman" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageViewEnglisch"
android:layout_below="@+id/imageViewLanguage"
android:layout_alignLeft="@+id/imageViewLanguage"
android:layout_alignStart="@+id/imageViewLanguage" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageViewPoland"
android:layout_below="@+id/imageViewLanguage"
android:layout_toLeftOf="@+id/imageViewEnglisch"
android:layout_toStartOf="@+id/imageViewEnglisch"
android:layout_marginTop="58dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageViewExit" />
</RelativeLayout>
Alles anzeigen