How to create an AlertDialog with ListView, without using AlertDialog.Builder?

后端 未结 2 1626
再見小時候
再見小時候 2020-12-21 06:55

I have a subclass of AlertDialog that should display a list of all the available Wifi networks in range.

I want that the dialog itself will be responsib

2条回答
  •  死守一世寂寞
    2020-12-21 07:20

    you can take one dialog

     final Dialog _dialog1 = new Dialog(this);
      _dialog1.requestWindowFeature(Window.FEATURE_NO_TITLE);
       _dialog1.setContentView(R.layout.your_own_listView);
    
    in setContentView() u can put ur own listView
    

提交回复
热议问题