zz_moto_actionbar_bkg.xml resource error on Droid

前端 未结 3 1402
一个人的身影
一个人的身影 2020-12-29 02:48

I am getting strange crash reports from Droid X and Droid Pro.

android.content.res.Resources$NotFoundException:
File res/drawable/zz_moto_actionbar_bkg.xml f         


        
3条回答
  •  醉梦人生
    2020-12-29 03:04

    you try this type code in alert dialog

    {
    myDialog = new Dialog(context);
    myDialog.setContentView(R.layout.addfence_dialog);
    myDialog.setTitle("EditFence");
    myDialog.setCancelable(true);
    
    strTitle = (EditText) myDialog.findViewById(R.id.add_dialog_edtTitle);
    strArea = (EditText) myDialog.findViewById(R.id.add_dialog_edtArea);
    strDescription = (EditText) myDialog.findViewById(R.id.add_dialog_edtDescription);
    strTag = (EditText) myDialog.findViewById(R.id.add_dialog_edtTag);
    
    save = (Button) myDialog.findViewById(R.id.add_dialog_btnSave);
    cancel = (Button) myDialog.findViewById(R.id.add_dialog_btnCancel);
    
    strTitle.setText(getTitle);
    strArea.setText(getArea);
    strDescription.setText(getDesc);
    strTag.setText(getTag);
    
    save.setOnClickListener(new OnClickListener() {
        public void onClick(View v) {
              .....
    }
    myDialog.show();
    }
    

提交回复
热议问题