Is a DialogBox considered a View in And开发者_运维百科roid? I want to add one to a FrameLayout, but I'm not sure if I can? Is it possible?
Unless there's something I'm missing, no, Dialog inherits directly from Object, and does not apply as a View. But I have to ask, why do you want to add Dialog into a FrameLayout in the first place?
You probably need to make a custom dialog for this matter a good help for that is the official android developer website
http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
精彩评论