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 :

enter image description here

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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -