开发者

imageButton in android's dialog? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or开发者_StackOverflow中文版 rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I want to put an imageButton instead of the default positive button. using layout is not good enough because it doesn't replace the positive button. does anyone know if it is possible to override the default buttons, or set their background?


I am assuming you are talking about creating an AlertDialog. Why not just create your own custom dialog? You can specify your ImageButton in a layout, then create a dialog with that layout, you don't need to go near the positive button.

More info here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜