android - Empty space in RelativeLayout -


i try use relativelayout make image on another, needless empty space appears.

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#263238" android:orientation="vertical">  <relativelayout     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:paddingleft="12dp"     android:paddingright="12dp"     android:paddingtop="12dp"     android:gravity="top">      <imageview         android:id="@+id/heroimage"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:src="@drawable/test3"         android:layout_alignparenttop="true"         android:scaletype="fitstart" />      <imageview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignparentend="true"         android:layout_alignparentright="true"         android:layout_alignparenttop="true"         android:src="@drawable/corner" />  </relativelayout> <linearlayout     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="#fff"     android:id="@+id/linearlayout_hero">     <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="hero appearance"/> </linearlayout> 

you can see between image of wolverine , text.

add imageview

android:scaletype="fitstart" android:adjustviewbounds="true" 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -