Can someone get this custom AlertDialog to actually work?

后端 未结 3 1108
闹比i
闹比i 2021-01-23 11:36

I asked another question about custom AlertDialog here.

Then I clicked my way to this custom AlertDialog (found here):

import android.app.AlertDialog;
im         


        
相关标签:
3条回答
  • 2021-01-23 12:21

    why don't you add a title (a text view) in R.layout.param and also you can add buttons and then everything will be shown

    0 讨论(0)
  • 2021-01-23 12:25

    override on create method of altertdialog and call following methods in overridden method oncreate

     setContentView(R.layout.paus);
    

    this will solve your problem.

    0 讨论(0)
  • 2021-01-23 12:26

    setContentView() must be called before setTitle() ...

    0 讨论(0)
提交回复
热议问题