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.google; import java.util.ArrayList; import java.util.List; import com.google.ClickableListAdapter.ViewHolder; import android.app.Dialog; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TableRow; import android.widget.TextView; /** * An example how to implement the ClickableListAdapter for a list view layout containing * a TextView and an ImageView. * @author poss3x */ public class mailslist extends ListActivity { Dialog dialog;// = new Dialog(this); /** * Our data class. This data will be bound to * MyViewHolder, which in turn is used for the * ListView. */ static class MyData { public MyData(String t,String t1,String t2, boolean e) { text = t; text1 = t1; text2 = t2; enable = e; } String text,text1,text2; Bitmap i1; boolean enable; } /** * Our very own holder referencing the view elements * of our ListView layout */ static class MyViewHolder extends ViewHolder { public MyViewHolder(TextView t,TextView t1,TextView t2) { sub = t; from=t1; date=t2; } TextView sub; TextView from; TextView date; } /** * The implementation of ClickableListAdapter */ private class MyClickableListAdapter extends ClickableListAdapter { public MyClickableListAdapter(Context context, int viewid, List objects) { super(context, viewid, objects); // nothing to do } protected void bindHolder(ViewHolder h) { // Binding the holder keeps our data up to date. // In contrast to createHolder this method is called for all items // So, be aware when doing a lot of heavy stuff here. // we simply transfer our object's data to the list item representatives MyViewHolder mvh = (MyViewHolder) h; MyData mo = (MyData)mvh.data; mvh.sub.setText(mo.text); mvh.from.setText(mo.text1); mvh.date.setText(mo.text2); } @Override protected ViewHolder createHolder(View v) { // createHolder will be called only as long, as the ListView is not filled // entirely. That is, where we gain our performance: // We use the relatively costly findViewById() methods and // bind the view's reference to the holder objects. /* TextView text = (TextView) v.findViewById(R.id.text); ImageButton button = (ImageButton) v.findViewById(R.id.Button);*/ TextView sub = (TextView) v.findViewById(R.id.lblSubject); TextView from = (TextView) v.findViewById(R.id.lblfrom); TextView date = (TextView) v.findViewById(R.id.lbldate); ViewHolder mvh = new MyViewHolder(sub,from,date); // Additionally, we make some icons clickable // Mind, that item becomes clickable, when adding a click listener (see API) // so, it is not necessary to use the android:clickable attribute in XML sub.setOnClickListener(new ClickableListAdapter.OnClickListener(mvh) { public void onClick(View v, ViewHolder viewHolder) { // we toggle the enabled state and also switch the icon /* MyViewHolder mvh = (MyViewHolder) viewHolder; MyData mo = (MyData) mvh.data; mo.enable = !mo.enable; // toggle ImageView icon = (ImageView) v; icon.setImageBitmap( mo.enable ? mailslist.this.mIconEnabled : mailslist.this.mIconDisabled);*/ MyViewHolder mvh = (MyViewHolder) viewHolder; MyData mo = (MyData)mvh.data; // we toggle an '*' in our text element String s = mo.text; if (s.charAt(0) == '*') { mo.text = s.substring(1); } else { mo.text = '*' + s; } mvh.sub.setText(mo.text); //try onlick (intent) here } }); // for text we implement a long click listener sub.setOnLongClickListener(new ClickableListAdapter.OnLongClickListener(mvh) { @Override public void onLongClick(View v, ViewHolder viewHolder) { MyViewHolder mvh = (MyViewHolder) viewHolder; MyData mo = (MyData)mvh.data; // we toggle an '*' in our text element String s = mo.text; if (s.charAt(0) == '*') { mo.text = s.substring(1); } else { mo.text = '*' + s; } mvh.sub.setText(mo.text); /* dialog.setContentView(R.layout.contextdialog); dialog.setTitle("Current Context"); dialog.show();*/ } }); return mvh; // finally, we return our new holder } protected void disp() { // TODO Auto-generated method stub } } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // fill list with some items... // to demonstrate the performance we create a bunch of data objects for (int i = 0; i < 10; ++i) { //if ka logic laga na hai ider //if(i%2) 24 feb(00 hrs) mObjectList.add(new MyData("Subject" + i,"abc"+i+"@gmail.com", +i+" Days ago",true)); } //here we set our adapter setListAdapter(new MyClickableListAdapter(this, R.layout.maillist, mObjectList)); } // --------------- field section ----------------- private Bitmap mIconEnabled; private Bitmap mIconDisabled; public List mObjectList=new ArrayList(); }