et_content=(EditText)this.findViewById(R.id.et_content); Stringstr=et_content.getText().toString(); if(str.length()>0) {str=str.substring(0,str.length()-1);} else {?str="";} et_content.setText(str); caseR.id.bt_write: et_content=(EditText)this.findViewById(R.id.et_content); et_content.setCursorVisible(true); break; caseR.id.bt_about: //aboutthissoftwareandauthor setContentView(R.layout.copyrights); Buttonbt_haha=(Button)findViewById(R.id.bt_haha); bt_haha.setOnClickListener(this); break; caseR.id.bt_haha: //joinintotheviewofextrainformation setContentView(R.layout.activity_main); btSet(); contentFindSet(saveCountor); break; caseR.id.bt_up: saveCountorImage++; if(saveCountorImage>saveCountor) { Toast.makeText(this,"到顶了",Toast.LENGTH_SHORT).show(); } else{ contentFindSet(saveCountorImage);}