自定义Dialog(自定义button样式)

	 dialog = new Dialog(this, R.style.MyDialog);
		dialog.setCancelable(false);
		//dialog.setContentView(R.layout.first_entry_dialog);
		View view = View.inflate(this, R.layout.normal_entry_dialog, null);
		et_pwd = (EditText) view.findViewById(R.id.et_normal_entry_pwd);
		Button bt_normal_ok = (Button) view.findViewById(R.id.bt_normal_dialog_ok);
		Button bt_normal_cancle =  (Button) view.findViewById(R.id.bt_normal_dialog_cancle);
		bt_normal_ok.setOnClickListener(this);
		bt_normal_cancle.setOnClickListener(this);
		dialog.setContentView(view);
		dialog.show();
R.style.MyDialog



    

R.layout.normal_entry_dialog



    

    

        

        
    

    

        

@drawable/button_selector

 
  



    @drawable/button_selector
" android:state_enabled="true" android:state_window_focused="false"/>
 
  


@drawable/button_selector






    
    
	

























你可能感兴趣的:(自定义Dialog(自定义button样式))