[android-developers] ListView problems

2010-10-06 Thread Rutton
Hi there, I am working on a little Activity with a ListView. This ListView should contain rows, that are LinearLayouts with vertical orientation created by a custom Adapter based on the BaseAdapter. The Adapter also creates a couple of RelativeLayouts (with three TextViews) that should be child

Re: [android-developers] Listview problems

2009-12-14 Thread Patrick Plaatje
Hi Mark, thanks a lot. I am indeed using the Holder pattern, and it looks like the Holder object is set to null when the initial listview is loaded. btw. the excerpt helped a lot! Regs, Patrick 2009/12/14 Mark Murphy > Patrick Plaatje wrote: > > What i'm currently experiencing though is that

Re: [android-developers] Listview problems

2009-12-14 Thread Mark Murphy
Patrick Plaatje wrote: > What i'm currently experiencing though is that the getView method in my > custom adapter is only executed for the items drawn on the screen Correct. This is a good thing (imagine 1,000 rows). > and > other views are loaded when they are within the view port. Likewise cor

Re: [android-developers] Listview problems

2009-12-14 Thread Patrick Plaatje
Hi Mark, i've set the minHeight for the view attached to the listview and it seems to be fine now so much trouble for something so small.. What i'm currently experiencing though is that the getView method in my custom adapter is only executed for the items drawn on the screen and other views

Re: [android-developers] Listview problems

2009-12-14 Thread Patrick Plaatje
Hi Mark, thanx for the response. Using the wireframe diagram and the visualized views, i found out that the listviews were added, but are laying on top of eachother. I'm not sure why this is happening though or how to correct this. But i'll continue my quest :-) Thanks so much for all the help!

Re: [android-developers] Listview problems

2009-12-14 Thread Mark Murphy
Patrick Plaatje wrote: > Hi Mark, > > the hierarchy viewer helped me in identifying the ListView and it's 10 > children. I can see the children here, but they just do not display in > the emulator. Are there any settings i can check? I checked > getVisibility already, are there other properties i

Re: [android-developers] Listview problems

2009-12-14 Thread Patrick Plaatje
Hi Mark, the hierarchy viewer helped me in identifying the ListView and it's 10 children. I can see the children here, but they just do not display in the emulator. Are there any settings i can check? I checked getVisibility already, are there other properties i can check (viewport, parent setting

Re: [android-developers] Listview problems

2009-12-14 Thread Mark Murphy
Patrick Plaatje wrote: > thanx for your amazing fast reply. All your remarks are very valid, but > i might have oversimplified my code: Sorry, I took the code listings at face value. > Your last remark is interesting though, how can i use the hierarchy > viewer? Because when i use lv.getVisibilit

Re: [android-developers] Listview problems

2009-12-14 Thread Patrick Plaatje
Hi Mark, thanx for your amazing fast reply. All your remarks are very valid, but i might have oversimplified my code: - SplashScreen remark: i'm actually doin this with a timertask and a handler, is tested and working; - Feed is indeed retrieved in a seperate thread (as are the images for each me

Re: [android-developers] Listview problems

2009-12-14 Thread Mark Murphy
Patrick Plaatje wrote: > Hi All, > > Struggling and struggling, but can't find the thing i'm doin wrong in my > listview implementation. No exceptions, just no listview. I have a > customized adapter with an overridden getView method, but the Log.d > won't show, so i guess my adapter is just wrong

[android-developers] Listview problems

2009-12-14 Thread Patrick Plaatje
Hi All, Struggling and struggling, but can't find the thing i'm doin wrong in my listview implementation. No exceptions, just no listview. I have a customized adapter with an overridden getView method, but the Log.d won't show, so i guess my adapter is just wrong? Could somebody have a look at the