How can i set my image to the bottom of the screen in android using xml code -



How can i set my image to the bottom of the screen in android using xml code -

hi have displayed png image on screen in android using xml code:

android:src="@drawable/grass"

but showing image @ top of screen ,now want image @ bottom of screen.

make sure layout file taking total of screen setting match_parent or fill_parent both layout_height , layout_width.

<relativelayout android:id="@+id/relativelayout1" android:layout_width="match_parent" android:layout_height="match_parent" > <imageview android:id="@+id/picture" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/grass" android:layout_alignparentbottom="true"/> </relativelayout>

android

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -