Dialog
این المان که یک المان مادر است به جای ساخت یک صفحه کامل تنها یک دایالوگ میسازد و میتواند بدون خارج شدن از محیط کنونی کاربر پیام را به کاربر نمایش دهد.
این المان موارد زیر را داراست :
-
Text :
متن توضیحات دایالوگ را مشخص میکند.
-
Title :
تیتر دایالوگ را مشخص میکند.
-
TextColor :
.رنگ متن توضیحات دایالوگ را مشخص میکند
در ادامه یک نمونه از کد dialog را مشاهده کنید:
<dialog id=borderCornerRadius="deletecomment" scrollable="true" width="match_parent"3">
<frame id=layout="linear_vertical" width="75" height="75" gravity="center">
<image src="http://162.55.105.137:8080/api/public/dl/IPI8gq4o" width="match_parent" selfgravity="center"></image>
</frame>
<frame background="#FFF" layout="linear_vertical">
<text gravity=renderas="center"html" textcolor="#E64724" text="<b>به اپسان خوش آمدید<\b>" textsize="14"18"
textalignment="center">به بهشترأی خوش آمدید.</text>
<frame background="#FFF" layout="linear_horizontal">
<button height="50" width="70" padding="35" background="#225ab4" textsize="13" gravity="center"
textcolor="#fff" borderCornerRadius="5" onClick="app/closedialog" margin="20">ممنون!</button>
</frame>
</framebutton text="تایید" borderCornerRadius="3" background="#E64724" onClick="app/closedialog">
</framebutton>
</dialog>
و در نتیجه کد فوق به صورت زیر اجرا میشود :
