我有一个弹出窗口,显示在初始应用启动期间。这是代码,我用来创建弹出窗口
private void loadPopup(View view, boolean loadSchool){
Log.i("Started Info","popup");
//.......
//create the popup window
int width = LinearLayout.LayoutParams.WRAP_CONTENT;
int height = LinearLayout.LayoutParams.WRAP_CONTENT;
boolean focusable = true;
popupWindow = new PopupWindow(layout, width, height, focusable);
//Show the popup window
popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);
}
此工作正常并正确显示弹出窗口。但是,如果我在弹出窗口外触摸(单击)它将被解除。那么如何让这个Popup窗口模态化,以便用户在他/她可以回到其他活动之前必须回复它?
答案 0 :(得分:0)
您可以尝试添加proprety。
•Function Declaration
function name ( arguments :: type )
#expressions
End
<function> → (function <identifier> ( <arguments> ) <expressionList> end) |
<identifier>( <arguments> ) <expressionList> end
<arguments> → <identifier> :: <type> | (<identifier> :: <type>),arguments>|e
•Function Call
x = sum (12 , y :: Int32 )
<funcall> → <identifier> = <identifier> ( <parameterList> )
<parameterList> → <parameter> :: <type>, < parameterList> | <parameter> ::<type> | < parameter >, <parameterList>
<parameter> → <identifier> | <element> | e
答案 1 :(得分:0)