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 /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

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 /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - SimpleCursorAdapter with ViewBinder - No Images

SimpleCursorAdapter with ViewBinder - No Images

All your problems with Audio, Video and Images.

SimpleCursorAdapter with ViewBinder - No Images

Postby Markus » Tue Jun 23, 2009 6:55 pm

Hallo,

i wan't to display the last 10 sms from my inbox with the contactphoto. I've got a SimpleCursorAdapter for a ListView, which loads an XML-Layout with various TextViews and an ImageView.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,R.layout.sms_row,c,columns, to);
  3.  
  4. adapter.setViewBinder(new SmsViewBinder(this, false));
  5.  
  6.  
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


SmsViewBinder implements the SimpleCursorAdapter.ViewBinder but I can't access the ImageView :-(

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. public boolean setViewValue(View view, Cursor cursor, int columnIndex) {
  3.  
  4.   Log.v("instanceof","-"+view.getClass());
  5.  
  6. }
  7.  
  8.  
Parsed in 0.010 seconds, using GeSHi 1.0.8.4


Log:
- class android.widget.TextView
- class android.widget.TextView
- class android.widget.TextView
...

No ImageViews :-( Can somebody help?
Markus
Freshman
Freshman
 
Posts: 6
Joined: Sat Jun 13, 2009 10:24 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 7 guests