i have imageview on relative layout. can see in screenshot : how can move imageview(the weel) in bottom-right corner, display 25 % part of it, in follow picture:
thanks in advance !
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#e0e0e0" > <com.androidsources.welcomescreen.myrecyclerview android:foreground="?android:attr/selectableitembackground" android:clickable="true" android:id="@+id/cardlist" android:layout_width="match_parent" android:layout_height="match_parent" /> <com.anupcowkur.wheelmenu.wheelmenu android:id="@+id/wheelmenu" android:layout_width="300dp" android:layout_height="300dp" android:src="@drawable/wheel"/> </relativelayout>
you can try this:
<com.anupcowkur.wheelmenu.wheelmenu android:id="@+id/wheelmenu" android:layout_width="300dp" android:layout_height="300dp" android:layout_alignparentright="true" android:layout_alignparentbottom="true" android:paddingleft="150dp" android:paddingtop="150dp" android:src="@drawable/wheel"/>
alignparentright
, alignparentbottom
attributes move widget @ right bottom corner. try change padding
achieve desired visual effect.
Comments
Post a Comment