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:
as can see there space between image , bottom border. how avoid that?
you relative layout has padding. means push content inwards. remove padding.
Comments
Post a Comment