02:18.22 | *** join/#android The_PHP_Jedi (n=ThePHPJe@66-50-196-237.prtc.net) |
02:51.54 | *** join/#android romainguy (i=romaingu@adsl-75-36-212-105.dsl.pltn13.sbcglobal.net) |
03:12.56 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
03:23.25 | *** join/#android Dan_U (n=Dan@70-41-230-162.cust.wildblue.net) |
03:43.38 | *** join/#android romainguy (i=romaingu@adsl-75-36-212-105.dsl.pltn13.sbcglobal.net) |
03:46.46 | *** join/#android romainguy_ (i=romaingu@adsl-75-36-212-105.dsl.pltn13.sbcglobal.net) |
04:00.19 | *** join/#android mike1o (n=mike@host207-205-dynamic.9-87-r.retail.telecomitalia.it) |
04:01.01 | mike1o | what object can I use to add textviews to it dynamically (at runtime)? |
04:10.22 | *** join/#android romainguy_ (i=romaingu@adsl-75-36-212-105.dsl.pltn13.sbcglobal.net) |
04:11.37 | romainguy_ | mike1o: What do you mean? |
04:12.08 | mike1o | romainguy, I mean I want to add textviews into a list at runtime... |
04:12.16 | romainguy_ | into a ListView? |
04:12.25 | romainguy_ | you need to use an Adapter :) |
04:12.31 | mike1o | listview forces me to use an adapter |
04:12.40 | romainguy_ | yes, that's correct |
04:13.06 | mike1o | but I can't decide when to add a textview because the adapter manages that for me... |
04:13.22 | romainguy_ | Yes you can decide |
04:13.28 | romainguy_ | Either use an adapter that lets you change its content |
04:13.31 | romainguy_ | or write such an adapter |
04:14.14 | *** join/#android cypromis_ (n=michalbi@e179141042.adsl.alicedsl.de) |
04:14.26 | mike1o | I wrote a simple one... but it doesn't take an instant picture of my cursor... |
04:14.47 | romainguy_ | What do you mean? |
04:15.00 | mike1o | but rather manages it throughout the duration of the activity |
04:15.56 | mike1o | nor can I change the contents of the associated textview at a given time... |
04:17.14 | romainguy | What exactly do you want to do? |
04:21.54 | *** join/#android Dralspire (n=dralspir@dt102nf0.tampabay.res.rr.com) |
04:21.58 | mike1o | romainguy, it's not easy to explain... I think I have to fix some bugs first... |
04:22.16 | romainguy_ | The simple answer is: ListView relies entirely on the adapter to update its content |
04:22.37 | romainguy_ | so if your adapter notifies ListView correctly that something has changed, you'll see the change on screen |
04:26.02 | mike1o | yes but it's not customizable... especially for asyncronous services |
04:29.28 | romainguy_ | mike1o: what do you mean it's not customizable? |
04:29.33 | romainguy_ | you can write any adapter you want... |
04:30.05 | mike1o | I was trying to pass the cursor as a parameter to my adapter class |
04:31.02 | mike1o | but it would only get the current cursor, but rather the first one I got when I created my activity |
04:31.22 | mike1o | *but it would NOT get the current cursor, but rather the first one I got when I created my activity |
04:38.13 | mike1o | slowly but surely I ll get it sooner or later :) |
05:17.23 | *** join/#android eton_ (n=eton@ppp-58-8-9-28.revip2.asianet.co.th) |
05:26.16 | *** join/#android zmedico (n=zmedico@ip68-4-152-120.oc.oc.cox.net) |
06:27.02 | *** join/#android mypapit (n=mypapit@pdpc/supporter/active/mypapit) |
07:20.12 | *** join/#android pandora-- (n=pandora-@cpe-76-172-208-63.socal.res.rr.com) |
07:59.00 | *** join/#android romainguy__ (i=romaingu@adsl-75-36-212-105.dsl.pltn13.sbcglobal.net) |
08:01.26 | *** join/#android eton (n=eton@ppp-58-8-9-28.revip2.asianet.co.th) |
08:26.59 | *** join/#android davidw (n=davidw@212.186.16.224) |
09:00.17 | *** join/#android diego (n=dpino@cm136076.red.mundo-r.com) |
10:06.13 | *** join/#android soulreaper (i=soul@p4FCE77B0.dip.t-dialin.net) |
10:32.39 | *** join/#android Yeggstry (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
10:41.24 | *** join/#android mr_daniel (n=sysrq@e177144094.adsl.alicedsl.de) |
11:09.16 | *** join/#android der_maddis (n=der_madd@dslb-088-066-054-188.pools.arcor-ip.net) |
11:33.02 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
11:54.27 | *** join/#android RatThing (n=user@79-77-217-150.dynamic.dsl.as9105.com) |
12:02.11 | *** join/#android bowman (n=foo@dslb-088-077-017-073.pools.arcor-ip.net) |
12:18.52 | *** join/#android guerby (n=guerby@gut75-4-82-235-162-148.fbx.proxad.net) |
12:44.40 | *** join/#android conceited (n=conceite@cpe-24-93-243-182.neo.res.rr.com) |
13:38.42 | *** join/#android cybereagle (n=cybereag@unaffiliated/cybereagle) |
13:41.16 | *** join/#android mike1o (n=mike@host207-205-dynamic.9-87-r.retail.telecomitalia.it) |
13:49.49 | *** part/#android hendry (n=hendry@nox.vm.bytemark.co.uk) |
14:06.22 | *** join/#android aksyn (n=aksyn@78-86-127-220.zone2.bethere.co.uk) |
14:31.34 | *** join/#android monster_ (n=monster_@static-76-160-17-34.dsl.cavtel.net) |
15:18.27 | *** join/#android unumm (n=elpresid@91.65.203.12) |
15:37.18 | mike1o | what interface should my custom adapter implement in order for it auto-update? |
16:01.25 | *** join/#android soulreaper (i=soul@p4FCE57D7.dip.t-dialin.net) |
16:16.38 | *** join/#android soulreaper_ (i=soul@p4FCE57D7.dip.t-dialin.net) |
16:56.38 | *** join/#android skicson (n=Mike_Mac@pool-96-234-164-211.bltmmd.fios.verizon.net) |
17:15.46 | *** join/#android mike1o (n=mike@host207-205-dynamic.9-87-r.retail.telecomitalia.it) |
17:16.25 | mike1o | I built a custom adapter but it won't autoupdate like the simplecursoradapter did |
17:23.29 | *** join/#android prpplague (n=dave@ppp-70-244-166-105.dsl.rcsntx.swbell.net) |
17:33.30 | *** join/#android davidw (n=davidw@212.186.16.224) |
17:57.30 | *** join/#android cypromis (n=michalbi@e179141042.adsl.alicedsl.de) |
18:02.29 | prpplague | http://www.sparkfun.com/commerce/product_info.php?products_id=8291 |
18:02.44 | prpplague | ops sorry wrong channel |
18:42.48 | *** join/#android romainguy_ (n=gfx@72.14.224.1) |
19:04.34 | *** join/#android Lede_ (n=lede@85.148.228.92) |
19:21.01 | mike1o | how do I make my listview always show the last item? |
19:21.39 | romainguy | mike1o: you can try setGravity(Gravity.BOTTOM) |
19:21.45 | romainguy | but this is much more reliable in the next SDK |
19:22.02 | romainguy | you can also force the selection to the last element |
19:23.22 | mike1o | like mListView.setSelection(cursor.count() - 1); ? |
19:25.17 | romainguy | yep |
19:25.23 | mike1o | when is the next sdk supposed to come out? |
19:25.34 | romainguy | I cannot say :) |
19:25.40 | mike1o | eheh |
19:25.48 | mike1o | u would have to kill me after |
19:26.10 | romainguy | something like this :) |
19:26.38 | mike1o | actually u would have to kill 64 people |
19:33.36 | *** part/#android der_maddis (n=der_madd@dslb-088-066-054-188.pools.arcor-ip.net) |
19:50.14 | mike1o | setGravity(Gravity.BOTTOM) doesn't work when new rows are added at runtime |
19:50.23 | mike1o | romainguy |
19:53.09 | *** join/#android mr_daniel (n=sysrq@e177147058.adsl.alicedsl.de) |
19:55.35 | romainguy | mike1o: setSelection() |
20:22.24 | *** join/#android The_PHP_Jedi (n=ThePHPJe@66-50-196-237.prtc.net) |
20:36.09 | *** join/#android romainguy__ (i=romaingu@adsl-75-36-212-105.dsl.pltn13.sbcglobal.net) |
20:48.57 | *** join/#android aksyn (n=aksyn@78-86-127-220.zone2.bethere.co.uk) |
21:02.37 | *** join/#android zmedico (n=zmedico@ip68-4-152-120.oc.oc.cox.net) |
21:04.01 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
21:34.15 | *** join/#android BiT-QuaKe (i=d@209.Red-81-32-231.dynamicIP.rima-tde.net) |
21:38.37 | *** join/#android duey (n=nick@ip-58-28-159-211.static-xdsl.xnet.co.nz) |
22:10.50 | *** join/#android Dan_U (n=Dan@70-41-230-162.cust.wildblue.net) |
22:47.46 | *** join/#android aksyn (n=aksyn@78-86-127-220.zone2.bethere.co.uk) |
23:12.05 | *** join/#android d3ce1t (n=srg@144.Red-88-2-126.staticIP.rima-tde.net) |
23:18.18 | *** join/#android aksyn (n=aksyn@78-86-127-220.zone2.bethere.co.uk) |
23:26.31 | *** join/#android monster- (n=monster_@static-76-160-17-34.dsl.cavtel.net) |
23:39.38 | *** join/#android romainguy_ (n=gfx@72.14.224.1) |