0
我在xamarin android应用程序中显示自定义对话框。xamarin.android中的自定义对话框显示非常小
它显示,但它显示非常小。
我想设置为根据设备大小对话框动态的高度和宽度..
我找到解决方案,但溶液的Android ..
这里是从机器人
WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
lp.copyFrom(dialog2.getWindow().getAttributes());
lp.width = WindowManager.LayoutParams.MATCH_PARENT;
lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
lp.gravity = Gravity.CENTER;
dialog2.getWindow().setAttributes(lp);
溶液
我想设置相同的功能,但我想在xamarin。
我怎么能这样做在xamarin
我将检查和更新很快 –
非常感谢主席先生,其工作 –