error: requestFeature() must be called before adding content - Still won't work

后端 未结 3 636
抹茶落季
抹茶落季 2021-01-20 21:06

I know that similar questions have been asked in the past but I can\'t seem to get this working at all even with the suggestions.

I get the above abend on the \"show

3条回答
  •  隐瞒了意图╮
    2021-01-20 21:25

    Substitude the following line:

    whatToUploadDialog.setContentView(R.layout.submitscoreprompt);
    

    with:

    whatToUploadDialog.setView(R.layout.submitscoreprompt);
    

提交回复
热议问题