user interface - Android : change the position of alert dialog icon -
i have alert dialog in android xml file.my alert dialog has icon in left side of it.i want change position of icon right side. dont want use custum dialog too
like :
a) if have drawable in dialog title (textview), use drawableright
android:drawableright="@drawable/youricon"
b) if imageview/imagebutton in relativelayout, use alignparentright
android:layout_alignparentright="true"
c) if imageview/imagebutton in linearlayout, put after textview
<linearlayout android:layout_width="300dp" android:layout_height="300dp"> <textview android:text="some text" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <imageview android:src="@drawable/youricon" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </linearlayout>
hope helps you.
Comments
Post a Comment