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 ListItemAdapter extends BaseAdapter implements OnCheckedChangeListener, OnClickListener { private static final String TAG = ListItemAdapter.class.getSimpleName(); private Context context; private LayoutInflater mInflater = null; private List mItems = new ArrayList(); // Our List of Items from ListItem.java public ListItemAdapter(Context context) { Log.d(TAG, "Constructor"); this.context = context; mInflater = LayoutInflater.from(context); } public void addItem(ListItem it) { mItems.add(it); // Adding Items to the list } public void setListItems(List lit) { // Adding Items by passing a whole new List mItems = lit; } public int getCount() { return mItems.size(); } public Object getItem(int position) { return mItems.get(position); } public long getItemId(int position) { return position; } /* * This gets called every time ListView needs a new Row Item * position holds the position on the row in the ListView * convertView is the new view we have to filled with our custom --> list_item.xml */ public View getView(int position, View convertView, ViewGroup parent) { ViewHolder vHolder = null; if (convertView != null) vHolder = (ViewHolder) convertView.getTag(); // convertView is been recycled else { convertView = (View) mInflater.inflate(R.layout.list_item, null); // Set content of new View with list_item.xml vHolder = new ViewHolder(); vHolder.checkBox = ((CheckBox) convertView.findViewById(R.id.lstChkbox)); // Getting pointers vHolder.textView = ((TextView) convertView.findViewById(R.id.lstText)); vHolder.imageView = ((ImageView) convertView.findViewById(R.id.listImage)); vHolder.checkBox.setOnCheckedChangeListener(this); // Setting Listeners vHolder.imageView.setOnClickListener(this); convertView.setTag(vHolder); } vHolder.checkBox.setId(position); // This is part of the Adapter APi vHolder.textView.setId(position); // Do not delete !!! vHolder.imageView.setId(position); if (mItems.get(position).getChecked()) { // Setting parameters for the View from our mItems list vHolder.checkBox.setChecked(true); } else { vHolder.checkBox.setChecked(false); } vHolder.textView.setText(mItems.get(position).getText()); vHolder.imageView.setImageDrawable(mItems.get(position).getmImage()); return convertView; } public static class ViewHolder { CheckBox checkBox; TextView textView; ImageView imageView; } /* * Ok for this test but Toast are going to show every time the row comes into View */ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { Log.d(TAG, "Checked"); int position = buttonView.getId(); if (isChecked) { mItems.get(position).setChecked(true); Toast.makeText(context, mItems.get(position).getText(), Toast.LENGTH_LONG).show(); } else { mItems.get(buttonView.getId()).setChecked(false); } } @Override public void onClick(View v) { Toast.makeText(context, "ImageClicked", Toast.LENGTH_LONG).show(); }