Improper space in the layout! how to solve?

Asked

Viewed 48 times

0

inserir a descrição da imagem aqui

Appeared an improper space in the android project... How can I solve?

<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"
    tools:context="com.wbsotware.wesley.forecast.MainActivity">

<ImageView
    android:layout_width="match_parent"
    android:layout_height="500dp"
    android:src="@drawable/bgverde"/>
</RelativeLayout>
  • This space will not be part of the image?

  • No... I want it to sit on top. In some screen resolutions it sits on top, in others it doesn’t.

  • Place android:scaleType="fitXY" in your imageView and the magic will happen. If it works, you can add an answer to your question showing how you solved it ;)

  • 1

    I believe this problem is related to the fact that the application has the upper Toolbar active in Styles.xml. If the @itscorey solution doesn’t work, post your Styles.xml, please.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.