如何选中复选框reamin

如何选中复选框reamin

本文介绍了如何选中复选框reamin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个联系人列表,用户可以从中选择联系人并将这些联系人发送到其他班级,当用户回到活动时,选择的联系人保持选中状态,我比较活动中的列表,并敬酒他们,吐司给我ans,但是后来复选框也没有被检查,怎么办才能检查它们.. package com.example.smscampaign; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; 导入android.app.ActionBar; 导入android.app.Activity; 导入android.content.ContentResolver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; 导入android.os.Bundle; import andro id.os.Parcelable; 导入android.provider.ContactsContract; 导入android.telephony.gsm.SmsManager; 导入android.util .SparseBooleanArray; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; 导入android.view.View; 导入android.view.ViewGroup; 导入android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Button; import android .widget.CheckBox; import android.widget.CompoundButton; import android.widget.ListView; import android.widget.TextView; 导入android.widget.Toast; 导入android.widget.AdapterView.OnItemClickListener; 公共课MainActivity扩展Activity实现OnItemClickListener { ArrayList name1 = new ArrayL ist(); static ArrayList phno1 = new ArrayList(); ArrayList phno0 = new ArrayList(); MyAdapter ma; 按钮发送; String [] cellArray = null; int [] str; int v = 0; 字符串联系人; static int check1; ListView lv; int index; int top; @Override protected void onCreate(Bundle savedInstanceState){ super。 onCreate(savedInstanceState); ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); setContentView(R.layout.get ); TextView txt =(TextView)findViewById(R.id.textView1); getAllCallLogs(this.getContentResolver()); lv =(ListView)findViewById(R.id.lv); ma = new MyAdapter(); lv.setAdapter(ma); lv.setOnItemClickListener(this); lv.setItemsCanFocus(false); lv.setTextFilterEnable d(true); } @Override public boolean onCreateOptionsMenu(菜单菜单){ // TODO自动生成的方法存根 getMenuInflater()。膨胀(R.menu.contact_main,菜单); 返回true; } @Override public boolean onOptionsItemSelected(MenuItem item){ // TODO自动生成方法存根 开关(item.getItemId()){ 案例R.id.addPage: 休息; } 返回super.onOptionsItemSelected(item); } @Override public void onBackPressed(){ // TODO Auto-生成方法存根 if(SmsSend.conct!= null) { StringBuilder b = SmsSend.conct; //Toast.makeText(getBaseContext(),b,Toast.LENGTH_LONG)。show(); // b3.append(); contacts = b.toString(); cellArray = contacts.split( ;); //将phno与所选联系人匹配来自活动a for(int i = 0; i< cellarray.length; i ++)> { for(int j = 0; j< phno1.size(); j ++){ if(cellArray [i] .equals(phno1.get) (j))){ Toast.makeText(getBaseContext(),cellArray [i] +hii+ phno1.get(j),Toast.LENGTH_LONG) .show(); ma.cb.setChecked(ma.mCheckStates.get(j,true)); break; } } } } ArrayList mylist = new ArrayList() ; StringBuilder checkedcontacts = new StringBuilder(); System.out.println(ma.mCheckStates.size()); for(int i = 0; i< name1.size(); i ++) { if (ma.mCheckStates.get(i)== true){ phno0.add(phno1.get(i).toString()); checkedcontacts.append(name1.get(i).toString()); checkedcontacts.append(\ n); ma.cb 。组检查(真实); }否则{ System.out.println(..未检查...... + name1.get(i).toString()); } } Intent returnIntent = new Intent(); returnIntent.putStringArrayListExtra(name,phno0); setResult(RESULT_OK,returnIntent); 完成(); } @Override public void onItemClick(AdapterView // TODO自动生成的方法存根 ma.toggle(arg2); } public void getAllCallLogs(ContentResolver cr){ 光标手机= cr.query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null,null, null,null); while(phones.moveToNext()){ String phoneNumber = phone .getString(phone .getColumnIndex(ContactsContract.CommonDataKinds.Phone .NUMBER)); Str名字=手机 .getString(手机 .getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME)); System.out.println(phoneNumber); name1.add(name); phno1.add(phoneNumber); } phones.close(); } 类MyAdapter扩展BaseAdapter工具 CompoundButton.OnCheckedChangeListener { public SparseBooleanArray mCheckStates; LayoutInflater mInflater; TextView tv1,tv; CheckBox cb; MyAdapter(){ mCheckStates = new SparseBooleanArray(name1.size()); mInflater =(LayoutInflater)MainActivity.this .getSystemService(Context.LAYOUT_INFLATER_SERVICE); } / /保存ListView状态 @Override public int getCount(){ // TODO自动生成方法存根 返回name1.size(); } @Override public Object getItem(int position){ // TODO自动生成方法存根 返回位置; } @Override public long getItemId(int position){ // TODO自动生成方法存根 返回0; } @Override public View getView(final int position,View convertView, ViewGroup parent){ / / TODO自动生成方法存根 查看vi = convertView; if(convertView == null) vi = mInflater.inflate(R .layout.row,null); tv =(TextView)vi.findViewById(R.id.textView1); tv1 =(TextView)vi.findViewById(R .id.textView2); cb =(CheckBox)vi.findViewById(R.id.checkBox1); tv.setText(name1.get(position)); tv1.setText(phn o1.get(position)); cb.setTag(position); cb.setChecked(mCheckStates.get(position,false )); cb.setOnCheckedChangeListener(this); Collections.sort(name1); 返回vi; } $ / b $ b public boolean isChecked(int position){ 返回mCheckStates.get(position,false); } public void setChecked(int position,boolean isChecked){ mCheckStates.put(position,isChecked); } public void toggle(int position){ setChecked(position,!isChecked(position)); } @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked){ // TODO自动生成的方法存根 mCheckStates.put((Integer)buttonView .getTag(),isChecked); } } } SmsSend.java 包com.example.smscampaign; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import android.app.ActionBar; import android.app.Activity; import android.app.Dialog; import android。 app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; 导入android.content.IntentFilter; 导入android.database.sqlite.SQLiteDatabase; 导入android.os.Bundle; import android.telephony.SmsManager; import android.util.Log; import android.view.Menu; import android.view.MenuItem; imp ort android.view.View; 导入android.view.View.OnClickListener; 导入android.widget.Button; 导入android。 widget.EditText; import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; 公共类SmsSend扩展Activity实现OnClickListener { BroadcastReceiver smsSentReciver,smsSentDelivery; EditText ed1,ed2; static int ResultCode = 12; static ArrayList sendlist = new ArrayList(); 按钮b1,b2,b3,b4; TextView txt; static StringBuilder conct = new StringBuilder(); String contacts =; String delim = ;; public static String Name; TextView ed; int i = 0; DataBaseHandler notasdb = new DataBaseHandler(this); @Override protected void onCreate(Bundle savedInstanceState){ // TODO自动生成方法存根 super.onCreate(savedInstanceState); setContentView(R.layout.smssend); ed1 =(EditText)findViewById(R.id.editText1); ed2 =(EditText)findViewById(R.id.editText2); b1 =(按钮)findViewById(R.id.button1); b1.setOnClickListener(this); b2 =(按钮)findViewById(R。 id.button2); b2.setOnClickListener(this); b3 =(Button)findViewById(R.id.button3); b3.setOnClickListener(this); b4 =(按钮)findViewById(R.id.button4); b4.setOnClickListener(this); txt =(TextView)findViewById(R.id.textnum2); ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); } @Override protected void onPause(){ // TODO自动生成的方法存根 super.onPause(); unregisterReceiver(smsS) entReciver); unregisterReceiver(smsSentDelivery); } @Override protected void onResume(){ // TODO自动生成方法存根 super.onResume(); smsSentReciver = new BroadcastReceiver(){ @Override public void onReceive(Context arg0,Intent arg1){ // TODO自动生成方法存根 开关(getResultCode()){ 案例Activity.RESULT_OK: Toast .makeText(getBaseContext(),sms已发送, Toast.LENGTH_SHORT)。show(); break; case SmsManager.RESULT_ERROR_GENERIC_FAILURE: Toast.makeText(getBaseContext(),Generic Fail, Toast.LENGTH_SHORT).show(); 休息; 案例SmsManager.RESULT_ERROR_NO_SERVICE: Toast.makeText(getBaseContext(),No Service, Toast.LENGTH_SHORT).show (); 休息; 案例SmsManager.RESUL T_ERROR_NULL_PDU: Toast.makeText(getBaseContext(),空PDU, Toast.LENGTH_SHORT)。show(); break; 案例SmsManager.RESULT_ERROR_RADIO_OFF: Toast.makeText(getBaseContext(),Radio Off, Toast.LENGTH_SHORT).show() ; 休息; 默认: 休息; } } }; smsSentDelivery = new BroadcastReceiver(){ @Override public void onReceive(上下文上下文,意图意图){ // TODO自动生成方法存根 switch(getResultCode()){ case Activity.RESULT_OK: Toast.makeText(getBaseContext(),Sms Delivered, Toast.LENGTH_SHORT)。show(); break; case Activity.RESULT_CANCELED: Toast.makeText(getBaseContext(),Sms没有交付, Toast.LENGTH_SHORT).show(); 休息; } } }; registerReceiver(smsSentReciver,新的IntentFilter(SMS_SENT)); registerReceiver(smsSentDelivery,新的IntentFilter(SMS_DELIVERED)); } @Override public void onClick(查看v) { // TODO自动生成方法存根 开关(v.getId()){ case R.id.button3: Name = ed1.getText()。toString(); 意图a =新意图(SmsSend.this,MainActivity.class); startActivityForResult(a,ResultCode); break; case R.id.button4: Intent file = new Intent(SmsSend.this,File_Selecter.class); startActivity(file); 休息; 案例R.id.button1: 休息; 案例R.id.button2: Log.i(短信,发送清单大小:+ sendlist.size( )); boolean diditwork1 = true; 尝试{ String Name = ed1.getText()。toString(); SmsManager smsManager = SmsManager.getDefault(); String msg = ed2.getText()。toString(); PendingIntent piSend = PendingIntent.getBroadcast(这个,0, 新意图(SMS_SENT),0); PendingIntent piDelivered = PendingIntent.getBroadcast(这个,0, 新意图(SMS_DELIVERED),0); Log.i(SMS ,联系人:+联系人); String [] cellArray; // b3.append(); contacts = conct.toString(); Toast.makeText(getBaseContext(),contacts,Toast.LENGTH_LONG) .show(); cellArray = contacts.split(;); for(int a1 = 0; a1< cellArray.length; a1 ++){ // smsManager.sendTextMessage(cellArray [a1] .toString(), // null, // msg,piSend,piDelivered); } DataBaseHandler entry = new DataBaseHandler(SmsSend.this); 条目.open(); entry.entryCreate(Name,msg); entry.close(); } catch(例外e){ diditwork1 = false; String erroe = e.toString(); Dialog d = new Dialog(this); d.setTitle(Dang it!); TextView tv = new TextView(this); tv.setText(erroe); d.setContentView(tv); d.show(); }最后{ if(diditwork1){ Dialog d = new Dialog(this); d.setTitle(Heck Yeah!); TextView tv = new TextView(this); tv.setText(Success); d.setContentView(tv); d.show(); } } ed1.setText(); ed2.setText(); 休息; } } protected void onActivityResult(int requestCode,int resultCode,Intent data){ if( requestCode == ResultCode){ if(resultCode == RESULT_OK){ // Intent t = getIntent(); sendlist = data.getStringArrayListExtra(name); if(sendlist!= null){ for(int i = 0; i< sendlist.size(); i ++){ conct.append(sendlist.get(i).toString()); conct.append(delim); } } } i = sendlist.size(); txt .setText(Integer.toString(i)); if(resultCode == RESULT_CANCELED){ } } } }I have an contact list from which user select the contacts and send those contacts to other class,when user came back to activity selected contact remain selected,i compare the list from both the activity,and toast them,toast giving me the ans,but then also checkbox is not remained checked,what to do to made them checked always..package com.example.smscampaign;import java.util.ArrayList;import java.util.Collections;import java.util.HashMap;import java.util.List;import java.util.Map;import android.app.ActionBar;import android.app.Activity;import android.content.ContentResolver;import android.content.Context;import android.content.Intent;import android.content.SharedPreferences;import android.database.Cursor;import android.os.Bundle;import android.os.Parcelable;import android.provider.ContactsContract;import android.telephony.gsm.SmsManager;import android.util.SparseBooleanArray;import android.view.LayoutInflater;import android.view.Menu;import android.view.MenuItem;import android.view.View;import android.view.ViewGroup;import android.view.View.OnClickListener;import android.widget.AdapterView;import android.widget.BaseAdapter;import android.widget.Button;import android.widget.CheckBox;import android.widget.CompoundButton;import android.widget.ListView;import android.widget.TextView;import android.widget.Toast;import android.widget.AdapterView.OnItemClickListener;public class MainActivity extends Activity implements OnItemClickListener {ArrayList name1 = new ArrayList();static ArrayList phno1 = new ArrayList();ArrayList phno0 = new ArrayList();MyAdapter ma;Button send;String[] cellArray = null;int[] str;int v = 0;String contacts;static int check1;ListView lv;int index;int top;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);ActionBar actionBar = getActionBar();actionBar.setDisplayHomeAsUpEnabled(true);setContentView(R.layout.get);TextView txt = (TextView) findViewById(R.id.textView1);getAllCallLogs(this.getContentResolver());lv = (ListView) findViewById(R.id.lv);ma = new MyAdapter();lv.setAdapter(ma);lv.setOnItemClickListener(this);lv.setItemsCanFocus(false);lv.setTextFilterEnabled(true);}@Overridepublic boolean onCreateOptionsMenu(Menu menu) {// TODO Auto-generated method stubgetMenuInflater().inflate(R.menu.contact_main, menu);return true;}@Overridepublic boolean onOptionsItemSelected(MenuItem item) {// TODO Auto-generated method stubswitch (item.getItemId()) {case R.id.addPage:break;}return super.onOptionsItemSelected(item);}@Overridepublic void onBackPressed() {// TODO Auto-generated method stubif(SmsSend.conct != null){StringBuilder b= SmsSend.conct;//Toast.makeText(getBaseContext(), b, Toast.LENGTH_LONG).show();// b3.append("");contacts = b.toString() ;cellArray = contacts.split(";"); //matching the phno with selected contacts came from activity afor(int i=0; i<cellarray.length;i++)>{for(int j=0; j< phno1.size();j++){if(cellArray[i].equals(phno1.get(j)) ){Toast.makeText(getBaseContext(), cellArray[i] + "hii" +phno1.get(j), Toast.LENGTH_LONG).show();ma.cb.setChecked(ma.mCheckStates.get(j, true));break;}}}}ArrayList mylist = new ArrayList();StringBuilder checkedcontacts = new StringBuilder();System.out.println(ma.mCheckStates.size());for (int i = 0; i < name1.size(); i++){if (ma.mCheckStates.get(i) == true) {phno0.add(phno1.get(i).toString());checkedcontacts.append(name1.get(i).toString());checkedcontacts.append("\n");ma.cb.setChecked( true);} else {System.out.println("..Not Checked......"+ name1.get(i).toString());}}Intent returnIntent = new Intent();returnIntent.putStringArrayListExtra("name", phno0);setResult(RESULT_OK, returnIntent);finish();}@Overridepublic void onItemClick(AdapterView // TODO Auto-generated method stubma.toggle(arg2);}public void getAllCallLogs(ContentResolver cr) {Cursor phones = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null,null, null);while (phones.moveToNext()) {String phoneNumber = phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));String name = phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));System.out.println(phoneNumber);name1.add(name);phno1.add(phoneNumber);}phones.close();}class MyAdapter extends BaseAdapter implementsCompoundButton.OnCheckedChangeListener {public SparseBooleanArray mCheckStates;LayoutInflater mInflater;TextView tv1, tv;CheckBox cb;MyAdapter() {mCheckStates = new SparseBooleanArray(name1.size());mInflater = (LayoutInflater) MainActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);}// Save ListView state@Overridepublic int getCount() {// TODO Auto-generated method stubreturn name1.size();}@Overridepublic Object getItem(int position) {// TODO Auto-generated method stubreturn position;}@Overridepublic long getItemId(int position) {// TODO Auto-generated method stubreturn 0;}@Overridepublic View getView(final int position, View convertView,ViewGroup parent) {// TODO Auto-generated method stubView vi = convertView;if (convertView == null)vi = mInflater.inflate(R.layout.row, null);tv = (TextView) vi.findViewById(R.id.textView1);tv1 = (TextView) vi.findViewById(R.id.textView2);cb = (CheckBox) vi.findViewById(R.id.checkBox1);tv.setText(name1.get(position));tv1.setText(phno1.get(position));cb.setTag(position);cb.setChecked(mCheckStates.get(position, false));cb.setOnCheckedChangeListener(this);Collections.sort(name1);return vi;}public boolean isChecked(int position) {return mCheckStates.get(position, false);}public void setChecked(int position, boolean isChecked) {mCheckStates.put(position, isChecked);}public void toggle(int position) {setChecked(position, !isChecked(position));}@Overridepublic void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {// TODO Auto-generated method stubmCheckStates.put((Integer) buttonView.getTag(), isChecked);}}}SmsSend.javapackage com.example.smscampaign;import java.util.ArrayList;import java.util.HashMap;import java.util.Map;import android.app.ActionBar;import android.app.Activity;import android.app.Dialog;import android.app.PendingIntent;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.database.sqlite.SQLiteDatabase;import android.os.Bundle;import android.telephony.SmsManager;import android.util.Log;import android.view.Menu;import android.view.MenuItem;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.EditText;import android.widget.ImageButton;import android.widget.TextView;import android.widget.Toast;public class SmsSend extends Activity implements OnClickListener {BroadcastReceiver smsSentReciver, smsSentDelivery;EditText ed1, ed2;static int ResultCode = 12;static ArrayList sendlist = new ArrayList();Button b1, b2, b3, b4;TextView txt;static StringBuilder conct = new StringBuilder();String contacts = "";String delim = ";";public static String Name;TextView ed;int i=0;DataBaseHandler notasdb = new DataBaseHandler(this);@Overrideprotected void onCreate(Bundle savedInstanceState) {// TODO Auto-generated method stubsuper.onCreate(savedInstanceState);setContentView(R.layout.smssend);ed1 = (EditText) findViewById(R.id.editText1);ed2 = (EditText) findViewById(R.id.editText2);b1 = (Button) findViewById(R.id.button1);b1.setOnClickListener(this);b2 = (Button) findViewById(R.id.button2);b2.setOnClickListener(this);b3 = (Button) findViewById(R.id.button3);b3.setOnClickListener(this);b4 = (Button) findViewById(R.id.button4);b4.setOnClickListener(this);txt = (TextView) findViewById(R.id.textnum2);ActionBar actionBar = getActionBar();actionBar.setDisplayHomeAsUpEnabled(true);}@Overrideprotected void onPause() {// TODO Auto-generated method stubsuper.onPause();unregisterReceiver(smsSentReciver);unregisterReceiver(smsSentDelivery);}@Overrideprotected void onResume() {// TODO Auto-generated method stubsuper.onResume();smsSentReciver = new BroadcastReceiver() {@Overridepublic void onReceive(Context arg0, Intent arg1) {// TODO Auto-generated method stubswitch (getResultCode()) {case Activity.RESULT_OK:Toast.makeText(getBaseContext(), "sms has been sent",Toast.LENGTH_SHORT).show();break;case SmsManager.RESULT_ERROR_GENERIC_FAILURE:Toast.makeText(getBaseContext(), "Generic Fail",Toast.LENGTH_SHORT).show();break;case SmsManager.RESULT_ERROR_NO_SERVICE:Toast.makeText(getBaseContext(), "No Service",Toast.LENGTH_SHORT).show();break;case SmsManager.RESULT_ERROR_NULL_PDU:Toast.makeText(getBaseContext(), "Null PDU",Toast.LENGTH_SHORT).show();break;case SmsManager.RESULT_ERROR_RADIO_OFF:Toast.makeText(getBaseContext(), "Radio Off",Toast.LENGTH_SHORT).show();break;default:break;}}};smsSentDelivery = new BroadcastReceiver() {@Overridepublic void onReceive(Context context, Intent intent) {// TODO Auto-generated method stubswitch (getResultCode()) {case Activity.RESULT_OK:Toast.makeText(getBaseContext(), "Sms Delivered",Toast.LENGTH_SHORT).show();break;case Activity.RESULT_CANCELED:Toast.makeText(getBaseContext(), "Sms not Delivered",Toast.LENGTH_SHORT).show();break;}}};registerReceiver(smsSentReciver, new IntentFilter("SMS_SENT"));registerReceiver(smsSentDelivery, new IntentFilter("SMS_DELIVERED"));}@Overridepublic void onClick(View v) {// TODO Auto-generated method stubswitch (v.getId()) {case R.id.button3:Name = ed1.getText().toString();Intent a = new Intent(SmsSend.this, MainActivity.class);startActivityForResult(a, ResultCode);break;case R.id.button4:Intent file = new Intent(SmsSend.this, File_Selecter.class);startActivity(file);break;case R.id.button1:break;case R.id.button2:Log.i("SMS", "Sendlist Size: " + sendlist.size());boolean diditwork1 = true;try {String Name = ed1.getText().toString();SmsManager smsManager = SmsManager.getDefault();String msg = ed2.getText().toString();PendingIntent piSend = PendingIntent.getBroadcast(this, 0,new Intent("SMS_SENT"), 0);PendingIntent piDelivered = PendingIntent.getBroadcast(this, 0,new Intent("SMS_DELIVERED"), 0);Log.i("SMS", "contacts: " + contacts);String[] cellArray;// b3.append("");contacts = conct.toString() ;Toast.makeText(getBaseContext(), contacts, Toast.LENGTH_LONG).show();cellArray = contacts.split(";");for (int a1 = 0; a1 < cellArray.length; a1++) {// smsManager.sendTextMessage(cellArray[a1].toString(),// null,// msg, piSend, piDelivered);}DataBaseHandler entry = new DataBaseHandler(SmsSend.this);entry.open();entry.entryCreate(Name, msg);entry.close();} catch (Exception e) {diditwork1 = false;String erroe = e.toString();Dialog d = new Dialog(this);d.setTitle("Dang it!");TextView tv = new TextView(this);tv.setText(erroe);d.setContentView(tv);d.show();} finally {if (diditwork1) {Dialog d = new Dialog(this);d.setTitle("Heck Yeah!");TextView tv = new TextView(this);tv.setText("Success");d.setContentView(tv);d.show();}}ed1.setText("");ed2.setText("");break;}}protected void onActivityResult(int requestCode, int resultCode, Intent data) {if (requestCode == ResultCode) {if (resultCode == RESULT_OK) {//Intent t = getIntent();sendlist = data.getStringArrayListExtra("name");if (sendlist != null) {for (int i = 0; i < sendlist.size(); i++) {conct.append(sendlist.get(i).toString());conct.append(delim);}}}i = sendlist.size();txt.setText(Integer.toString(i));if (resultCode == RESULT_CANCELED) {}}}}推荐答案 这篇关于如何选中复选框reamin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-23 17:01