如何在自定义对话框的边界上获得交叉按钮/图像? [英] How to get that cross button/image on Custom dialog box's boundary?
问题描述
如何在自定义对话框的边界上获得交叉按钮/图像(红色圆圈)?
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屋!