public class FullScrreenDialog extends Dialog {
public FullScrreenDialog(Context context, List<FuncGridItem> shareList) {
//super(context,R.style.Dialog_FullScreen);
super(context);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_NO_TITLE);
View view = LayoutInflater.from(getContext()).inflate(R.layout.reaction_share, null);
setContentView(view);
getWindow().setBackgroundDrawable(new ColorDrawable(0x00000000));
getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
getWindow().setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
}
android全屏对话框,覆盖状态栏 尝试了多种方法 效果都不好
最新推荐文章于 2024-07-05 18:32:30 发布