开发者

imageButton in android's dialog? [closed]

开发者 https://www.devze.com 2023-03-20 12:43 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or开发者_StackOverflow中文版 rhetorical andcannot be reasonably answered in its cu
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

精彩评论

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

关注公众号