**** BEGIN LOGGING AT Sun Feb 03 02:59:56 2008 Feb 03 04:01:01 what object can I use to add textviews to it dynamically (at runtime)? Feb 03 04:11:37 mike1o: What do you mean? Feb 03 04:12:09 romainguy, I mean I want to add textviews into a list at runtime... Feb 03 04:12:16 into a ListView? Feb 03 04:12:25 you need to use an Adapter :) Feb 03 04:12:32 listview forces me to use an adapter Feb 03 04:12:40 yes, that's correct Feb 03 04:13:07 but I can't decide when to add a textview because the adapter manages that for me... Feb 03 04:13:22 Yes you can decide Feb 03 04:13:28 Either use an adapter that lets you change its content Feb 03 04:13:31 or write such an adapter Feb 03 04:14:26 I wrote a simple one... but it doesn't take an instant picture of my cursor... Feb 03 04:14:48 What do you mean? Feb 03 04:15:00 but rather manages it throughout the duration of the activity Feb 03 04:15:56 nor can I change the contents of the associated textview at a given time... Feb 03 04:17:14 What exactly do you want to do? Feb 03 04:21:58 romainguy, it's not easy to explain... I think I have to fix some bugs first... Feb 03 04:22:16 The simple answer is: ListView relies entirely on the adapter to update its content Feb 03 04:22:37 so if your adapter notifies ListView correctly that something has changed, you'll see the change on screen Feb 03 04:26:02 yes but it's not customizable... especially for asyncronous services Feb 03 04:29:28 mike1o: what do you mean it's not customizable? Feb 03 04:29:33 you can write any adapter you want... Feb 03 04:30:05 I was trying to pass the cursor as a parameter to my adapter class Feb 03 04:31:02 but it would only get the current cursor, but rather the first one I got when I created my activity Feb 03 04:31:22 *but it would NOT get the current cursor, but rather the first one I got when I created my activity Feb 03 04:38:13 slowly but surely I ll get it sooner or later :) Feb 03 15:37:18 what interface should my custom adapter implement in order for it auto-update? Feb 03 17:16:25 I built a custom adapter but it won't autoupdate like the simplecursoradapter did Feb 03 18:02:29 http://www.sparkfun.com/commerce/product_info.php?products_id=8291 Feb 03 18:02:44 ops sorry wrong channel Feb 03 19:21:02 how do I make my listview always show the last item? Feb 03 19:21:39 mike1o: you can try setGravity(Gravity.BOTTOM) Feb 03 19:21:46 but this is much more reliable in the next SDK Feb 03 19:22:02 you can also force the selection to the last element Feb 03 19:23:22 like mListView.setSelection(cursor.count() - 1); ? Feb 03 19:25:17 yep Feb 03 19:25:23 when is the next sdk supposed to come out? Feb 03 19:25:34 I cannot say :) Feb 03 19:25:40 eheh Feb 03 19:25:48 u would have to kill me after Feb 03 19:26:10 something like this :) Feb 03 19:26:38 actually u would have to kill 64 people Feb 03 19:50:15 setGravity(Gravity.BOTTOM) doesn't work when new rows are added at runtime Feb 03 19:50:24 romainguy Feb 03 19:55:35 mike1o: setSelection() **** ENDING LOGGING AT Mon Feb 04 02:59:57 2008