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 - Problem with crossing element of a ListView

Problem with crossing element of a ListView

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Problem with crossing element of a ListView

Postby Kilay » Fri Apr 03, 2009 8:02 am

Hi,

I try to cross a text of a ListView item. To do this, I use the code from http://www.jsharkey.org/blog/2008/09/15 ... id-09-sdk/

My problem is when I cross the first item of my list, it will cross the first "hidden" (the first element that we can't see without sliding the list) item of my list too. And same if I cross the second item.

Here is the code of my onListItemClick listener :
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. @Override
  3.  
  4.     protected void onListItemClick(ListView l, View v, int position, long id) {
  5.  
  6.         super.onListItemClick(l, v, position, id);
  7.  
  8.         TextView  nameTextView = (TextView)v.findViewById(R.id.NameIngredientItemTextView);
  9.  
  10.        
  11.  
  12.         if(nameTextView.getPaintFlags()==257){
  13.  
  14.                 nameTextView.setPaintFlags(nameTextView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
  15.  
  16.         }
  17.  
  18.         else{
  19.  
  20.                 nameTextView.setPaintFlags(nameTextView.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);
  21.  
  22.         }
  23.  
  24.     }
  25.  
  26.  
Parsed in 0.012 seconds, using GeSHi 1.0.8.4


Sorry for my english, it's not my native language :)
Kilay
Freshman
Freshman
 
Posts: 3
Joined: Fri Mar 27, 2009 6:23 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests