美文网首页
requestFeature() must be called

requestFeature() must be called

作者: 2020_cefe | 来源:发表于2019-04-24 11:45 被阅读0次

    requestWindowFeature 调用时机不对,在创建自定义的Dialog时,设置自定义view,在onCreate里的正确调用顺序

    requestWindowFeature->super.onCreate(savedInstanceState)->获取当前Window对象(Window window = getWindow())->setContentView()->设置Window参数(WindowManager.LayoutParam)window.setAttributes()

    相关文章

      网友评论

          本文标题:requestFeature() must be called

          本文链接:https://www.haomeiwen.com/subject/yvgwgqtx.html