Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class DynamicCheckboxListView extends ListActivity implements AdapterView.OnItemClickListener{ CheckBoxAdapter mCheckBoxAdapter ; private EditText newValue; private List list = new ArrayList(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.dynamic_list); newValue = (EditText) findViewById(R.id.new_value_field); mCheckBoxAdapter = new CheckBoxAdapter(this, R.layout.main, list); setListAdapter(mCheckBoxAdapter); ((ImageButton) findViewById(R.id.button)).setOnClickListener(getBtnClickListener()); getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); final ListView listView = getListView(); listView.setItemsCanFocus(false); listView.setTextFilterEnabled(true); //listView.setOnItemClickListener(this); } public void onItemClick(AdapterView parent, View view, int position, long id) { mCheckBoxAdapter.toggle(position); } private OnClickListener getBtnClickListener() { return new OnClickListener() { public void onClick(View view) { try { list.add(newValue.getText().toString()); mCheckBoxAdapter.notifyDataSetChanged(); } catch (NullPointerException e) { e.printStackTrace(); Log.i("[Dynamic Items]", "Tried to add null value"); } } }; } private static class CheckBoxAdapter extends ArrayAdapter implements CompoundButton.OnCheckedChangeListener { private static SparseBooleanArray mCheckStates; public CheckBoxAdapter(Context context, int resource, List objects) { super(context, resource, objects); System.out.println("mCheckStates " + mCheckStates); if(mCheckStates == null) mCheckStates = new SparseBooleanArray(objects.size()); } @Override public View getView(int position, View convertView, ViewGroup parent) { final CheckBox view = (CheckBox) super.getView(position, convertView, parent); view.setTag(position); view.setChecked(mCheckStates.get(position, false)); view.setOnCheckedChangeListener(this); return view; } public boolean isChecked(int position) { return mCheckStates.get(position, false); } public void setChecked(int position, boolean isChecked) { mCheckStates.put(position, isChecked); notifyDataSetChanged(); } public void toggle(int position) { setChecked(position, !isChecked(position)); } public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { System.out.println("buttonView.getTag() " + buttonView.getTag() + " " + isChecked); mCheckStates.put((Integer) buttonView.getTag(), isChecked); } } }