Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望Dialog可以完全自己定义界面,可以去掉标题栏 #29

Closed
sohide opened this issue Nov 13, 2018 · 3 comments
Closed

希望Dialog可以完全自己定义界面,可以去掉标题栏 #29

sohide opened this issue Nov 13, 2018 · 3 comments

Comments

@sohide
Copy link
Contributor

sohide commented Nov 13, 2018

主要是想实现类似DoModal模态窗口的功能
支持内层消息循环

@xianjimli
Copy link
Member

程序:

  • dialog_create 创建的dialog没有title.
  • dialog_create_simple 创建的dialog有title.

XML(不指定dialog_title/dialog_client即可),如:

  1 <dialog style="notitle" anim_hint="fade(duration=300)" x="c" y="m" w="80%" h="160">
  2   <label name="" x="center" y="middle:-20" w="200" h="30" text="Are you ready?"/>
  3   <button name="quit" x="10" y="bottom:10" w="40%" h="30" text="Yes"/>
  4   <button name="quit" x="right:10" y="bottom:10" w="40%" h="30" text="No"/>
  5 </dialog>

参考:demos/assets/raw/ui/fade.xml

@sohide
Copy link
Contributor Author

sohide commented Nov 21, 2018

了解了

@sohide sohide closed this as completed Nov 21, 2018
@lwm668
Copy link

lwm668 commented Sep 23, 2021

我也想实现没有“标题栏”的dialog,但试了很多次都没有成功,能贴个源代码吗?谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants