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)
package com.myself.dnd; import java.util.ArrayList; import java.util.List; import com.myself.dnd.R; import android.content.Context; import android.graphics.Color; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.View.OnTouchListener; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; public class DnDAdapter extends BaseAdapter { private static List items = null; private Context context = null; public static View emptyView = null; private static Entry emptyEntry = new Entry(); public DnDAdapter(Context context) { // TODO Auto-generated constructor stub this.context = context; // buildList(); } public List getItems() { return items; } public void setList(List items) { this.items = items; } @Override public int getCount() { // TODO Auto-generated method stub return items.size(); } @Override public Object getItem(int position) { // TODO Auto-generated method stub return items.get(position); } @Override public long getItemId(int position) { // TODO Auto-generated method stub return 0; } @Override public View getView(final int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub Entry entry = items.get(position); LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); final View view = inflater.inflate(R.layout.listitem, parent, false); TextView txt = (TextView)view.findViewById(R.id.TextView01); txt.setText(entry.getName()); txt.setTextColor(Color.WHITE); final ImageView img = (ImageView)view.findViewById(R.id.entryIcon); img.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub Log.v(getClass().toString(),"Icon onTouch. Selected position: " + position); DragAndDrop.listView.moveEntry = items.get(position); buildEmptyView(DragAndDrop.listView.moveEntry); items.remove(position); items.add(position, emptyEntry); DragAndDrop.listView.invalidateViews(); DragAndDrop.listView.setEnabled(false); DragAndDrop.listView.isMoveFlag = true; DragAndDrop.listView.moveView = view; DragAndDrop.listView.movedPosition = position; return false; } }); if (entry.getName().equals("Empty entry")) { img.setVisibility(View.INVISIBLE); txt.setVisibility(View.INVISIBLE); } return view; } private void buildEmptyView(Entry moveentry) { LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); emptyView = inflater.inflate(R.layout.emptyview, null, false); TextView txt = (TextView)emptyView.findViewById(R.id.TextView01); txt.setText(moveentry.getName()); txt.setTextColor(Color.WHITE); } public static void addEntry(int pos) { items.add(pos, DragAndDrop.listView.moveEntry); DragAndDrop.listView.invalidateViews(); } public static void addEmptyEntry(int pos) { items.add(pos, emptyEntry); DragAndDrop.listView.invalidateViews(); } public static void removeEmptyEntry() { items.remove(emptyEntry); DragAndDrop.listView.invalidateViews(); } }