AlertDialog dialog = builder.setTitle("消息列表")    
                    .setView(layout)    
                    .create();    
dialog.show();    
//设置窗口的大小    
dialog.getWindow().setLayout(300, 200);    
 WindowManager.LayoutParams.MATCH_PARENT

 

相关文章:

  • 2021-12-09
  • 2021-09-20
  • 2021-05-28
  • 2021-07-07
  • 2022-01-18
  • 2021-07-09
  • 2021-08-11
猜你喜欢
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案