活动在android的对话 [英] activity as dialog in android
问题描述
我想使用的 的活动为对话框
我和活动为对话和放大器的主题;我成功了。
但
我这里的问题是,当我点击活动之外
它会自动得到封闭和放大器;在previous活动开始。
I want to use an activity as dialog
and i made the theme of the activity as dialog & i succeed.
but
i have the problem here is when i click outside of the activity
its automatically get closed & the previous activity get started..
我尝试过的事情,使透明父布局它看起来并不像一个对话框。
i tried a thing to make transparent parent layout it does not look like a dialog..
我想利用这个活动,在我的应用程序中创建新帐号,因为它有这样的平板电脑,它看起来空间大未使用的...只有3场,所以我想用活性对话框.....
i want to use this activity to create new account in my application as it has only 3 fields so in tablet it looks large space unused... so i want to use activity as dialog.....
thenx提前...! 例子将是AP preciated .. !!!!!
thenx in advance...!!! examples will be appreciated..!!!!!
推荐答案
尝试用下列财产
this.setFinishOnTouchOutside(false);
这篇关于活动在android的对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!