android - How to set ImageView right to the bottom? -


i've got next template:

<?xml version="1.0" encoding="utf-8"?> <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:paddingbottom="@dimen/activity_vertical_margin"     android:paddingleft="@dimen/activity_horizontal_margin"     android:paddingright="@dimen/activity_horizontal_margin"     android:paddingtop="@dimen/activity_vertical_margin"     android:background="@drawable/fight"     tools:context="ru.net.babobka.fightactivity" >      <imageview         android:id="@+id/imageview2"         android:layout_width="150dp"         android:layout_height="180dp"         android:layout_alignparentbottom="true"         android:layout_alignparentright="true"         android:src="@drawable/ken1" />      <imageview         android:id="@+id/imageview1"         android:layout_width="150dp"         android:layout_height="190dp"         android:layout_alignparentbottom="true"         android:layout_alignparentleft="true"         android:src="@drawable/ryu1" />  </relativelayout> 

the result is:

enter image description here

as can see there space between image , bottom border. how avoid that?

you relative layout has padding. means push content inwards. remove padding.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -