android - imageview position setting like this image -
i setting imageview this.
(http://wemakeucc.com/4.jpg) <-check image please
i utilize imageview until now.
<imageview android:id="@+id/a_01_b" android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@drawable/a_01_i" />
so want know code can setting imageview image.
what should do?
here code per requirement :
xml file: , screenshots
<?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:orientation="vertical" > <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="right" android:orientation="vertical" android:paddingbottom="30dp" android:paddingright="20dp" android:paddingtop="20dp" > <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/android" /> </linearlayout> <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="right" android:orientation="vertical" android:paddingbottom="30dp" android:paddingright="120dp" android:paddingtop="20dp" > <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/android" /> </linearlayout> </linearlayout>
now set padding per ur need...
android layout position imageview
No comments:
Post a Comment