B
Baxitus
Neues Mitglied
- 3
Hallo miteinander,
ich arbeite mich zur Zeit in die Android-Entwicklung ein. Ich habe derzeit das Problem, dass ich einen Abstand einfach nicht weg bekomme, den ich aber nicht haben will...
Die Content-Main meiner Activity besteht aus einem Relative-Layout mit einem ImageView und einem Framelayout, in das ich nachher Fragmente einbinden möchte.
wie man sieht, habe ich das Banner mit android:layout_alignParentBottom="true" nach unten gesetzt. "@dimen/logo_margin" beträgt 0 dp.
Ich habe schon versucht beim Relative-Layout und beim Imagview Paddings und Margins auf 0 dp zu setzen, aber ich bekomme diesen blöden Abstand zwischen dem Banner und der Buttonleiste unten nicht weg, den man im folgenden Bild sieht:
Was kann ich tun, damit das Banner direkt auf den Buttons liegt?
Hinweis: Leichte Zensuren in Abbildung und Code.
ich arbeite mich zur Zeit in die Android-Entwicklung ein. Ich habe derzeit das Problem, dass ich einen Abstand einfach nicht weg bekomme, den ich aber nicht haben will...
Die Content-Main meiner Activity besteht aus einem Relative-Layout mit einem ImageView und einem Framelayout, in das ich nachher Fragmente einbinden möchte.
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/logo_margin"
android:paddingLeft="@dimen/logo_margin"
android:paddingRight="@dimen/logo_margin"
android:paddingTop="@dimen/logo_margin"
android:layout_margin="@dimen/logo_margin"
android:background="@color/colorDark"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="*Zensiert*"
tools:showIn="@layout/app_bar_main">
<ImageView
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/logo"
android:layout_alignParentBottom="true"
/>
<FrameLayout
android:id="@+id/mainFrame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/banner"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"/>
</RelativeLayout>
wie man sieht, habe ich das Banner mit android:layout_alignParentBottom="true" nach unten gesetzt. "@dimen/logo_margin" beträgt 0 dp.
Ich habe schon versucht beim Relative-Layout und beim Imagview Paddings und Margins auf 0 dp zu setzen, aber ich bekomme diesen blöden Abstand zwischen dem Banner und der Buttonleiste unten nicht weg, den man im folgenden Bild sieht:
Was kann ich tun, damit das Banner direkt auf den Buttons liegt?
Hinweis: Leichte Zensuren in Abbildung und Code.