[android-developers] Re: ListView problem while scrolling

2012-09-01 Thread LiTTle
It is me again!!! When I select the first item and then I did everything Mr. Mark Murphy said when I scroll down and then come back to the top, the first item is black again instead of pink? Is there any way to store this option (for example selected=true) and repaint the same object as pink

Re: [android-developers] Re: ListView problem while scrolling

2012-09-01 Thread Mark Murphy
On Sat, Sep 1, 2012 at 7:42 AM, LiTTle littlep...@gmail.com wrote: It is me again!!! When I select the first item and then I did everything Mr. Mark Murphy said when I scroll down and then come back to the top, the first item is black again instead of pink? Is there any way to store this option

[android-developers] Re: ListView problem

2010-10-11 Thread sisko
Thank you both very much. I am such a newbie. I have been stuck on this point for weeks. Very appreciated. On Oct 2, 4:44 am, Ramaraju naga v.nagaramar...@gmail.com wrote: even I did, it works fine. see this code   ListView menuList =(ListView) findViewById(R.id.ListView_Menu);        

[android-developers] Re: ListView problem

2010-10-01 Thread JPBerrocal
Your problem in not in the listview, is in the layout. More precisely the ImageView03 is using all the space available in the screen so your listview doesnt show. Use wrap_content or specify the correct size of the image instead. ImageView android:id=@+id/ImageView03

Re: [android-developers] Re: ListView problem

2010-10-01 Thread Ramaraju naga
even I did, it works fine. see this code ListView menuList =(ListView) findViewById(R.id.ListView_Menu); String[] items={ getResources().getString(R.string.menu_item_play), getResources().getString(R.string.menu_item_scores),

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-07-15 Thread marmor
Hi, I've been having the same issue, using GridView with a BaseAdapter. My items are always the same type (a linearlayout of an image and a textview), so the above solution didn't help me. I get shrunk items every once in a while, after playing a few seconds scrolling up and down, and the

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-09 Thread zohar lerman
Thanks for your help but it still shrink the image. about the criteria: I have different criteria but to make it easy to explain i prefer this one. On Jun 9, 8:56 am, mort m...@sto-helit.de wrote: I think you should work with getItemViewType(int position) and getViewTypeCount(), so Android

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-09 Thread zohar lerman
Hi Mort, I just tried it again and i changed getItemViewTypeCount to getViewTypeCount and it is working as expected. Actually it even fixed some other issues that I had with the ListView thanks On Jun 9, 10:38 am, zohar lerman lirazo...@gmail.com wrote: Thanks for your help but it still shrink

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-08 Thread zohar lerman
I forgot to mention that it happens in SDK 2.1 but not in SDK 1.5 On Jun 8, 11:03 am, zohar lerman lirazo...@gmail.com wrote: Hi, I found strange behavior in ListView. I have ListView of TextView except from one entry that contains ImageView. when i on of the items is touched and scroll up

[android-developers] Re: ListView problem - items are shrank when while scrolling the view

2010-06-08 Thread mort
I think you should work with getItemViewType(int position) and getViewTypeCount(), so Android knows there are different views for the items. Example (untested ugly style): public int getItemViewType(int position) { if ( position == 5 ) return 1; else return 0; } public int

[android-developers] Re: ListView problem is back.

2009-11-15 Thread Sergey Vasilinets
A reference on the sample project is in my first post: http://listexample.googlecode.com/ Don't be afraid, there is a just few lines of code and nothing is unnecessary. On 14 ноя, 16:52, Dan Dumont ddum...@gmail.com wrote: Can you post a sample? On Nov 14, 2009 4:23 AM, Sergey Vasilinets

[android-developers] Re: ListView problem is back.

2009-11-14 Thread Sergey Vasilinets
Goog Morning Dan, Thank you for your reply. This project is very simple and there isn't such functions as delete and edit. That's why only action with the size of adapter is adding and it's in safe method of AsyncTask On 14 ноя, 06:52, Dan Dumont ddum...@gmail.com wrote: I'm pretty sure that if

Re: [android-developers] Re: ListView problem is back.

2009-11-14 Thread Dan Dumont
Can you post a sample? On Nov 14, 2009 4:23 AM, Sergey Vasilinets sergey.vasilin...@googlemail.com wrote: Goog Morning Dan, Thank you for your reply. This project is very simple and there isn't such functions as delete and edit. That's why only action with the size of adapter is adding and it's

[android-developers] Re: ListView problem

2009-10-15 Thread Farproc
Maybe some bugs in your code or in Android framework. Post your code, let's examine. On 10月16日, 上午10时47分, 楊健 y...@cycomtech.co.jp wrote: Dears, When I try to show a list with items and labels,I create item and labels with different layout by inflater. The problem is when i scroll the list