java - aligning 2 imageViews in a RelativeLayout -


i have problem aligning 2 imageviews in relativelayout:

problem http://i39.tinypic.com/6h2c79.png

these 2 images need close eatch other without space. this: target http://i42.tinypic.com/9ay2oh.png

    <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background_portrait" android:orientation="vertical" >  <!-- header -->  <imageview     android:id="@+id/header"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:contentdescription="@string/desc"     android:src="@drawable/header" />  <relativelayout     android:layout_width="wrap_content"       android:layout_height="wrap_content"          >      <imageview         android:id="@+id/dia1"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:contentdescription="@string/desc"         android:src="@drawable/dia1" />      <imageview         android:id="@+id/dia2"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/dia1"         android:contentdescription="@string/desc"         android:src="@drawable/dia2" />  </relativelayout> 

what doing wrong?

update dia1 is: dia1 http://i42.tinypic.com/kap5a9.png dia2 is: dia2 http://i41.tinypic.com/wr1cia.png

from 1st picture posted, seems bottom image has great deal of transparent "padding" (not actual padding, transparent image pixels between visible part , upper limit).

in opinion, should combine relativelayout cropped versions of upper , lower images.

otherwise, consider checking this thread overlapping images.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -