如何获得自定义对话框的边界交叉按钮/图像? [英] How to get that cross button/image on Custom dialog box's boundary?

查看:108
本文介绍了如何获得自定义对话框的边界交叉按钮/图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得交叉按钮/图像(红圈)在自定义对话框的边界?

How to get that cross button/image (red circled) on Custom dialog box's boundary?

推荐答案

Android是不是Windows。你不需要在Windows风格的关闭按钮。此外,Android是不是MacOS的,所以你不需要一点点红灿灿的糖果般的点无论是。

Android is not Windows. You don't need a Windows style 'Close' button. Also, Android is not MacOS, so you don't need a little shiny red candy-like dot either.

当你开发一个移动平台的应用程序,你应该符合用户界面准则定义使用模式和视觉样式的平台。

When you develop an app for a mobile platform you should conform to the User Interface Guidelines that define the usage patterns and visual styles of that platform.

Android不具有标题栏,不具有下拉菜单,并且不具有最小化/还原/关闭按钮。不要试图让他们,否则你将做出一个应用程序,看起来就像是从来没有打算为Android平台。

Android does not have title bars, does not have dropdown menus, and does not have minimize/restore/close buttons. Don't try to make them, or you will make an app that looks like it was never meant for the Android Platform.

回硬键是不正是你想要的按钮。它关闭对话框而不进行选择。让Android平台做同样的事情在这里。不要强迫你的用户想在其他操作系统相比,他们使用的。

The "Back" hardkey is the button that does exactly what you want. It closes a dialog without making a selection. Let the Android platform do the same thing here. Don't force your users to think in another OS than the one they use.

这篇关于如何获得自定义对话框的边界交叉按钮/图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆