如何设计单选对话框? [英] How to design Single Selection Dialog?

查看:95
本文介绍了如何设计单选对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示对话框,如附件图像。一个图像在左边,文本
单选。

i want to show dialog like attached Image. an image to the left and text with single selection.

任何一个指导我如何实现?

any one guide me how to achieve this?

推荐答案

为此,您必须自定义上下文菜单因为本地上下文菜单不支持对话框内的图标显示,而是仅支持在每个项目中显示的文本。

For that you have to customize the Context Menu because native context menu doesn't support for icon display inside the dialog, instead it only supports the text to be displayed inside each item.

你在这里提到的是带有图标的自定义上下文菜单。以下是您想要的示例:

The image which you have mentioned here is customized context menu with icon. Here is the same example which you want:


  1. Android:带有图标的上下文菜单

  2. 以上链接的源代码: http://code.google.com/p/iconcontextmenu/

  1. Android: Context Menu With Icon
  2. Source code for the above link: http://code.google.com/p/iconcontextmenu/

这篇关于如何设计单选对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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