Styling titleDivider in Dialog

后端 未结 15 911
面向向阳花
面向向阳花 2020-12-06 05:27

I am wondering how it is possible to get rid of (or change color) titleDivider in Dialog. It is a blue line below dialog title shown on honeycomb+ devices.

15条回答
  •  有刺的猬
    2020-12-06 05:36

    you can make a custom dialog like this:

        Dialog dialog = new Dialog(this);
        dialog.setContentView(R.layout.custom_dialog);
        Button okay = (Button) dialog.findViewById(R.id.button1);
        okay.setOnClickListener(new OnClickListener() {
    
             public void onClick(View arg0) {
    
               // do your work
             }
        });
    

    Set a custom title in layout don't use android

         dialog.setTitle();
    

    and your custom_dialog.xml

      
    
      
    
    
        

提交回复
热议问题