00:33.09 | Raven | Where did all the samples go in the SDK? |
00:35.32 | jasta | they're still present. in fact, there are more. |
00:35.45 | Raven | how do I get to them on the emulator? |
00:35.58 | jasta | They are accessible as applications just like any other. |
00:36.07 | Raven | hmm |
00:36.17 | f00f- | ApiDemos buddy |
00:36.39 | jasta | There is a button on the m5 home screen that shows you your applications. Did you push it? |
00:36.41 | Raven | yeah that where they were before, but I don't see that now |
00:36.59 | jasta | call emulator -wipe-data then. |
00:37.06 | jasta | and verify your installation |
00:37.49 | Raven | k, I'll try that |
00:38.05 | f00f- | rm -rf / |
00:38.13 | Raven | now that I think about it I don't think I updated my path |
00:38.59 | kurzum | do what f00f says it helped me :) |
00:44.17 | Raven | ahhh, much better :) thx |
00:49.17 | jasta | fucking off-by-one. |
00:53.06 | romainguy | jasta: at least in Visual Basic you can choose to use 1-based indices :)) |
00:54.37 | kurzum | in MATLAB too :D |
00:54.41 | jasta | the romans had similar thinking. |
00:55.08 | kurzum | in fact in MATLAB you HAVE to use one based indices |
00:56.47 | jasta | romainguy: do you suppose i should implement my alphabet bar by extending a listview or by wrapping it? |
00:57.09 | jasta | i'm not sure that it would be appropriate to extend it |
00:57.11 | romainguy | wrapping is probably easier |
00:58.06 | jasta | yeah, probably. |
00:58.17 | jasta | the tricky part is that i want it to feel overlayed onto the list itself |
00:58.28 | jasta | not just next to it |
00:58.52 | romainguy | how is that tricky? |
00:58.55 | jasta | although i want touch events to go to it, and not to the list item below |
00:59.21 | jasta | romainguy: Well, it's not, i just like that word |
01:00.27 | jasta | i'm gonna take a crack at this implementation now... |
01:00.58 | jasta | i think i will go with extending the listview, since all the drawing and layout should be exactly the same |
01:01.11 | jasta | i only want to catch touch events and draw something special |
01:01.44 | romainguy | why don't you just create an alphabet bar widget that you overlay on top of the listview with a relativelayout? |
01:01.55 | *** join/#android bladezor (n=bladezor@c-98-196-112-154.hsd1.tx.comcast.net) |
01:02.19 | jasta | that would be more flexible i suppose. |
01:02.33 | jasta | but then how would the alphabet bar logically associate with the listview? |
01:02.55 | romainguy | that would be the role of the relativelayout |
01:03.04 | romainguy | basically MyFancyList extends RelativeLayout |
01:03.11 | romainguy | and MyFancyList nows about ListView and the bar |
01:03.27 | jasta | oh, right |
01:03.28 | romainguy | the advantage of this approach is that you don't have to worry about intercepting events |
01:04.14 | jasta | you are right, that does sound best. |
01:04.34 | jasta | thanks |
01:04.59 | jasta | i don't know how to use relativelayout at all, that is perhaps why i didn't think to use it :) |
01:07.58 | jasta | alignParentRight, will that invoke the sort of "float" behaviour i'm after? |
01:09.10 | romainguy | yep |
01:09.46 | jasta | cool |
01:22.36 | *** join/#android chaosvoyager (n=Miranda@pool-72-80-180-212.nycmny.fios.verizon.net) |
01:23.07 | jasta | i'm totally going to publish this widget when i'm done |
01:26.20 | romainguy | it's probably patented by Apple though |
01:27.05 | jasta | oh fuck apple |
01:27.14 | romainguy | sure |
01:27.26 | romainguy | but it's still probably patented :) |
01:28.48 | jasta | i'm sure you can find prior art to destroy that |
01:30.03 | kurzum | is it gonna react to drag events as well? so you can just slide your finger/mouse across it? |
01:30.16 | f00f- | ugh |
01:30.18 | f00f- | down with eye candy |
01:30.28 | f00f- | i want something funtional and simple |
01:30.33 | f00f- | aesthetically pleasing as it should be |
01:30.53 | kurzum | an alphabet bar is functional |
01:30.59 | kurzum | simple too :) |
01:31.05 | f00f- | abcd ? |
01:31.08 | f00f- | like OSK? |
01:31.26 | kurzum | OSK? |
01:31.35 | f00f- | on-screen keyboard |
01:32.05 | kurzum | i guess its gonna be like iphones bar, so not quite |
01:32.52 | f00f- | okay |
01:32.55 | f00f- | good luck with it |
01:34.03 | kurzum | why is it bad? |
01:34.22 | kurzum | better than a edit text and a search button imo |
01:34.49 | jasta | yeah, but i actually have a plan to make a better alphabet bar ;) |
01:35.16 | kurzum | make it transparent :) |
01:35.27 | jasta | when you touch a letter, it will expand itself to show more granular choices within that section |
01:35.31 | jasta | so if tehre are a lot of S's, for example |
01:35.36 | *** join/#android illustir (n=alper@s55912056.adsl.wanadoo.nl) |
01:35.41 | jasta | it will pop up a few more choices to narrow it down |
01:36.10 | kurzum | is it gonna be in the same row as the normal characters or on the side? |
01:36.26 | jasta | off to the side more, but i intend to have it only show up when there is a reason for it |
01:36.33 | jasta | as in, more entries than fit on the screen by some factor |
01:36.42 | kurzum | yeah thats cool |
01:37.13 | jasta | some people have a *LOT* of music ;P |
01:37.17 | kurzum | it makes me wish i had an use for it :) |
01:39.06 | jasta | i also have a little alphabet separator thing in place for it |
01:39.16 | jasta | and the advantage is that it has already scanned for the positions of each separator |
01:39.25 | jasta | so clicking the item on the bar should be very fast |
01:40.37 | kurzum | is it gonna consist of many different buttons or is it just gonna be a single big control? |
01:41.01 | kurzum | i made something similar, a zoom bar for the map before the new SDK came out |
01:42.59 | jasta | well, a single big control from the appearance of it |
01:43.06 | jasta | but of course each letter will be a separately clickable entity |
01:43.37 | kurzum | ok so that makes sliding impossible i guess |
01:44.04 | kurzum | you could hava a single control and react on onMotionEvents |
01:44.08 | jasta | well, sliding would be awkward anyway. the size of each lable is the same, and yet each label might represent a variable range of rows |
01:44.26 | jasta | so even though you were sliding through with constant pressure, the list would rapidly jitter around |
01:45.13 | jasta | the whole concept just doesn't really work. you'd have to calculate all sorts of crap |
01:45.18 | kurzum | you mean when you narrow down the choices? |
01:45.46 | jasta | no, if you tried to make it a slider |
01:47.36 | kurzum | well i dont see the problem, you just have to transform a mouse position into a character, which wouldnt be a problem if each char occupies the same amount of space |
01:48.05 | kurzum | then highlight that character somehow |
01:48.23 | jasta | well then how would you slide smoothly? |
01:48.41 | jasta | there would be a sudden jerk when you move into the boundary of the next letter |
01:49.15 | chaosvoyager | Why? |
01:49.16 | kurzum | well you wouldnt have a slider in the traditional sense, just selected characters |
01:49.29 | jasta | i think that would be weird personally |
01:49.43 | jasta | i'll let you experiment with my widget when i'm done :) |
01:50.16 | kurzum | cool :) |
01:58.46 | *** join/#android jasonchen (n=jasonche@nat/google/x-ab59699f7f7cae9a) |
02:13.41 | *** join/#android pombreda (n=pombreda@c-67-180-198-25.hsd1.ca.comcast.net) |
02:22.43 | *** join/#android dragor43 (n=asdf@151.199.245.93) |
02:36.11 | *** join/#android kwestion505 (n=t@c-71-232-31-218.hsd1.ma.comcast.net) |
02:38.32 | jasta | romainguy: you guys should really implement android:paddingTopBottom and android:paddingLeftRight as a convenience |
02:39.30 | *** join/#android jasonchen (n=jasonche@nat/google/x-91142533918eb476) |
02:50.02 | *** join/#android romainguy (n=romaingu@nat/google/x-0d4e6d6ba9c547f3) |
02:59.01 | chaosvoyager | jasta, can't you add your own convenience attributes to a resource, such as jasta:paddingTopBottom? |
03:10.04 | *** part/#android kurzum (n=opera@chello084112021199.32.11.tuwien.teleweb.at) |
03:11.03 | jasta | chaosvoyager: possibly, but that would not affect any existing layouts, which it should. |
03:14.12 | jasta | time for dinner and a little mythbusters. tired of coding for now :) |
03:20.31 | *** join/#android Dan_U (n=Dan@70-41-192-219.cust.wildblue.net) |
04:02.19 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
04:19.55 | *** join/#android romainguy (i=romaingu@adsl-75-52-254-31.dsl.pltn13.sbcglobal.net) |
04:24.14 | *** join/#android muthu (n=sara@59.92.89.234) |
04:24.27 | muthu | good morning |
04:25.57 | chaosvoyager | morning |
04:53.07 | jasta | hmmm |
04:58.08 | jasta | back to coding |
05:22.13 | jasta | hmm, there is definitely a bug in stopSelf() somewhere. |
05:22.20 | jasta | or at least, the documentated behaviour is not correct. |
05:26.28 | jasta | i just submitted a bug: |
05:26.32 | jasta | http://code.google.com/p/android/issues/detail?id=384 |
05:35.30 | *** join/#android mykhal (n=mykhal@bs45-mb.vscht.cz) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android zmedico (n=zmedico@ip68-4-152-120.oc.oc.cox.net) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android muthu (n=sara@59.92.89.234) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android [jarek] (n=jarek@asd153.neoplus.adsl.tpnet.pl) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android parti (n=parti@77.163.25.244) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android crib (n=chris@port-195-158-167-8.dynamic.qsc.de) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android Kriyasurfer (n=Akashakr@dsl027-162-152.atl1.dsl.speakeasy.net) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android _avatar (n=avatar@cpe-76-88-201-161.bak.res.rr.com) [NETSPLIT VICTIM] |
05:38.28 | *** join/#android kies (n=kies@adsl-76-247-166-0.dsl.chmpil.sbcglobal.net) [NETSPLIT VICTIM] |
05:40.14 | *** join/#android [jarek] (n=jarek@83.26.215.153) |
05:40.16 | *** join/#android zmedico (n=zmedico@68.4.152.120) [NETSPLIT VICTIM] |
05:40.16 | *** join/#android Kriyasurfer (n=Akashakr@dsl027-162-152.atl1.dsl.speakeasy.net) [NETSPLIT VICTIM] |
05:40.16 | *** join/#android _avatar (n=avatar@cpe-76-88-201-161.bak.res.rr.com) [NETSPLIT VICTIM] |
05:40.16 | *** join/#android parti (n=parti@77.163.25.244) [NETSPLIT VICTIM] |
05:40.16 | *** join/#android kies (n=kies@76.247.166.0) [NETSPLIT VICTIM] |
05:40.18 | *** join/#android crib (n=chris@195.158.167.8) [NETSPLIT VICTIM] |
05:44.28 | *** join/#android muthu (n=sara@59.92.89.234) [NETSPLIT VICTIM] |
05:44.38 | muthu | what the... |
05:44.57 | muthu | #androids are wierd |
05:46.33 | chaosvoyager | Mass exodus/unexodus? |
05:47.28 | muthu | everyone kicked out |
05:48.14 | muthu | quickly what's that theme syntax |
05:48.27 | muthu | <PROTECTED> |
05:48.35 | muthu | i know its there somewhere in docs |
05:49.49 | chaosvoyager | No idea. Theming is the last thing on my list, sorry. |
05:50.06 | muthu | ok |
05:57.27 | chaosvoyager | Not quick, but is this what you were asking about" http://code.google.com/android/reference/available-resources.html#stylesandthemes |
06:00.35 | muthu | chaos: thx |
06:00.46 | muthu | i was looking for that built in stuff |
06:00.51 | muthu | you know the default is dark |
06:00.56 | muthu | i wanted to try the lighter one |
06:01.21 | chaosvoyager | ah. |
06:02.23 | jasta | the dark one will look the best on a real handset |
06:02.34 | jasta | sharpest contrast and less bright |
06:03.27 | muthu | jasta: what's the light one name? |
06:03.38 | muthu | theme-light or something |
06:11.29 | muthu | jasta: were you able to look into AndroidManifest.xml that ships with android.jar |
06:23.13 | jasta | no, never got around to exploring the xml files |
06:23.41 | muthu | is it available somewhere in readable format? |
06:24.00 | jasta | the xml files in android.jar? no. |
06:24.16 | muthu | ok |
06:25.15 | jasta | grr, sqlite always trips me up. |
06:26.06 | jasta | sqlite3_column_origin_name returns the column name but doesn't seem to care that i've placed an alias on it. |
06:44.24 | jasta | sigh its documented to behave that way :( |
06:48.37 | jasta | alright, smashed those bugs |
06:49.29 | *** join/#android Adys (n=Adys@unaffiliated/adys) |
06:57.23 | muthu | <PROTECTED> |
06:57.24 | muthu | The second one is "android:theme="@android:style/Theme.Dark" |
06:57.56 | muthu | i'm having these moments now |
06:58.04 | muthu | sometimes the docs are very good |
06:58.12 | muthu | sometimes the docs sucks |
06:58.22 | muthu | sometimes the samples are great |
06:58.37 | muthu | sometimes the samples are not enough |
06:58.55 | muthu | thank you plusminus anddev.org |
06:59.05 | muthu | we salute you again and again! |
06:59.22 | muthu | i vote for anddev.org as the best community site for androids |
06:59.38 | muthu | if the android judges are here |
06:59.47 | muthu | give him the 10 million ;) |
07:01.05 | jasta | android's documentation is more useful than the community sites :) |
07:01.16 | jasta | i agree with you about the docs and samples though. |
07:01.29 | jasta | it seems so deep and robust, but there are corners that are just totally empty |
07:02.03 | jasta | fortunately it's all somewhat intuitive so you can figure a lot of it out by just understanding the overall design |
07:03.16 | muthu | correct jasta |
07:04.15 | muthu | but community sites are the best :) |
07:04.30 | jasta | i generally disagree ;) |
07:04.35 | muthu | i know |
07:04.46 | muthu | you are a lonely warrior :) |
07:05.10 | jasta | community sites like anddev.org seem to focus on demonstrations and samples rather than enhancing the real deficiencies of incomplete documentation. |
07:05.25 | muthu | ah come on jasta.. |
07:05.25 | jasta | i would find it more useful there was simply a wiki that attempted to better explain dimly lit parts of android |
07:05.36 | jasta | like the layout XML, drawables, etc. |
07:05.45 | jasta | more complex service arrangements, things of that nature |
07:06.01 | muthu | i'm sure anddev.org |
07:06.07 | muthu | will get bigger and better |
07:06.14 | jasta | i'm sure it will get bigger |
07:06.18 | chaosvoyager | good point, why ISN'T there a wiki? |
07:06.36 | muthu | create one chaos |
07:06.48 | jasta | chaosvoyager: probably is one somewhere, developers just aren't being drawn to it. |
07:07.07 | muthu | wait a minute.. there's a wiki |
07:07.08 | jasta | it's a chicken and the egg problem. all of us capable of filling it out with lessons we've learned are too busy writing more code :) |
07:07.16 | muthu | androidwiki.org |
07:07.17 | muthu | i guess |
07:07.44 | muthu | .com |
07:07.59 | jasta | muthu: if you look around just a little bit you'll notice there's hardly any content |
07:08.04 | muthu | here's some sites i know |
07:08.05 | jasta | like i said, it's a chicken and the egg problem. |
07:08.08 | muthu | http://code.google.com/androidhttp://androidwiki.com/ http://www.android-freeware.org/ http://www.anddev.orghttp://helloandroid.comhttp://openandroids.comhttp://openintents.org |
07:08.16 | muthu | sorry for the mess |
07:08.37 | jasta | there aren't many people in the community today that even know enough about android to fill such a thing out |
07:08.40 | chaosvoyager | Yeah. He bought that domain to talk about actual robots though, and then repurposed it when Android came out. |
07:08.41 | muthu | jasta: that's why i rate the community sites higher |
07:08.56 | jasta | muthu: Well, I don't because I'm actually interested in learning Android :) |
07:08.57 | muthu | chaos: really? |
07:09.08 | chaosvoyager | Yes. |
07:09.15 | muthu | interesting |
07:10.13 | jasta | muthu: the situation is sure to improve as google's documentation improves. |
07:10.23 | muthu | jasta: agreed |
07:10.27 | chaosvoyager | To be honest, I'm not sure how involved I'll remain with Android. Creating a Wiki just for my own reference is one of the first things I do when I start on a new project. |
07:10.38 | jasta | but if i stay my current course, i will personally absorb more information than is likely to be available on community sites :) |
07:10.59 | muthu | jasta: then contribute.. i know its hard, but |
07:11.09 | jasta | i prefer not to contribute in that way |
07:11.15 | muthu | jasta: you can be the android thoughtleader! |
07:11.25 | jasta | i prefer to just dump a large quantity of well-designed code on the table ;) |
07:11.45 | muthu | and make it public :) |
07:12.04 | jasta | yes, all my work not directly sponsored through a company will be open sourced for android. |
07:12.11 | chaosvoyager | It's not the sharing, it's the indexing... |
07:12.17 | *** join/#android jeddy3 (n=mattiast@81-237-230-160-no83.tbcn.telia.com) |
07:12.24 | muthu | true.. indexing |
07:13.02 | muthu | anddev.org seems to be like it |
07:13.08 | muthu | we need just a couple of site |
07:13.28 | muthu | helloandroid.com |
07:13.37 | muthu | another interesting one in the same league |
07:14.05 | *** join/#android kies (n=kies@adsl-76-247-166-0.dsl.chmpil.sbcglobal.net) |
07:14.13 | muthu | zhoss and plusminus |
07:14.18 | muthu | great guys |
07:14.40 | chaosvoyager | The problem I think is that many people are still rapidly absorbing info about Android and have yet to even put it in their own mental index. |
07:14.49 | chaosvoyager | At least that's the case for me. |
07:14.56 | *** join/#android jtoy (n=jtoy@125.31.234.200) |
07:15.08 | muthu | that's why the early adopters win |
07:15.18 | jasta | go me :) |
07:15.23 | jasta | hehe |
07:15.27 | muthu | ha ha |
07:15.37 | jasta | i have a widget i'm trying to complete and release on my blog |
07:15.45 | jasta | hopefully next weekend i'll have time to finish it |
07:15.45 | muthu | what's your blog? |
07:15.52 | jasta | devtcg.org |
07:15.57 | muthu | checking out.. |
07:16.52 | muthu | you are josh then |
07:17.14 | jasta | well, yes. |
07:17.26 | jasta | who's josh to you though? :) |
07:17.37 | muthu | jasta = josh |
07:17.50 | muthu | good to know the real name |
07:17.52 | jasta | we seem to be going in a circle :) |
07:17.55 | muthu | now you can't hide :) |
07:18.07 | jasta | i thought perhaps you were referring to one of my google groups posts or something. |
07:18.38 | muthu | the blog is good.. wonder why it did not show up in google search |
07:18.54 | jasta | well, it's somewhat new. i opened it when i started developing for android |
07:19.10 | muthu | ok.. its the volume |
07:19.14 | muthu | only a few articles |
07:19.14 | jasta | and i only post when i have something interesting to note :) |
07:19.19 | muthu | correct |
07:19.37 | muthu | dims had a lot of code snippets |
07:19.41 | jasta | i hate those blogs that have posts like "so, i haven't posted in a while, sorry about that. no news though." |
07:19.42 | muthu | then he went quiet |
07:19.58 | muthu | that's for the A list |
07:20.07 | muthu | so you're not in the league then ;) |
07:20.13 | jasta | i kind of throttled back my public work when i started my ADC project in january. |
07:20.40 | jasta | i plan to work on it privately until i submit it for judging. |
07:20.45 | jasta | then i will release it under the GPL |
07:21.00 | muthu | if you win, will you work on it fulltime |
07:21.15 | jasta | no, i will work on it in my spare time until i believe it is mature. |
07:21.23 | muthu | ok.. makes sense |
07:21.47 | jasta | the grand prize is a very generous gift, certainly, but is insufficient for any rational person to quit their job |
07:21.55 | jasta | after taxes, it will be around $200K. |
07:22.00 | muthu | ha ha |
07:22.10 | jasta | which for many full time software engineers is only 2 - 3 years salary. |
07:22.35 | muthu | the recognition |
07:22.43 | muthu | that might be huge |
07:22.51 | jasta | if i win, even if only the qualifying prize, i will use it toward a down payment for my first house. |
07:23.08 | muthu | hope you win |
07:23.14 | jasta | even if i win $200K, i want to live in seattle so that's like 40% down :) |
07:23.24 | muthu | more than the prize |
07:23.30 | muthu | the vc's might be interested |
07:23.36 | jasta | meh |
07:23.43 | jasta | i try to ignore their influence |
07:23.58 | muthu | yeah.. think about it |
07:24.01 | muthu | you get the money |
07:24.07 | muthu | then you work on what you like, fulltime |
07:24.17 | jasta | i prefer not to fantasize about this, honestly. |
07:24.25 | jasta | it's not healthy :) |
07:24.31 | muthu | agreed |
07:24.46 | jasta | i just humbly write my code and live my life :) |
07:24.56 | muthu | *humbly* |
07:24.59 | muthu | lol |
07:25.27 | jasta | i humbly write my code, i doubt i'm humble :) |
07:25.36 | muthu | but i know, you are trying to help |
07:25.44 | muthu | in your own *humble* way ;) |
07:26.48 | jasta | i have simply adopted the role of the pedagogue ;) |
07:27.07 | jasta | that was a positive influence for me when i learned |
07:27.51 | muthu | where's your student? |
07:27.55 | muthu | lol |
07:28.17 | jasta | you know, i have a life beyond #android :) |
07:28.25 | muthu | really? |
07:28.32 | jasta | amazingly, yes. |
07:29.17 | muthu | i need to visit SF this year |
07:29.22 | jasta | i have at the very least a full time job, friends, and a steady girlfriend :) |
07:29.32 | muthu | jasta: you the man! |
07:29.34 | muthu | rock on! |
07:29.53 | muthu | i have a boring married life :( |
07:29.53 | jasta | huh? |
07:30.02 | jasta | oh yeah, boo :) |
07:30.25 | jasta | i'm approaching marriage pretty quick, i think |
07:31.10 | muthu | i don't know why things change after marriage |
07:31.14 | muthu | its mostly fun.. go for it |
07:31.19 | muthu | kids are great fun |
07:31.26 | jasta | because one of you has an unnatural attachment to eccentric traditions. |
07:32.02 | jasta | that's probably my girlfriend too, though |
07:32.08 | duey | student loan |
07:32.09 | duey | ! |
07:32.15 | jasta | ? |
07:32.24 | muthu | welcome duey |
07:32.24 | duey | if i win first round prize |
07:32.29 | duey | student loan gets paid |
07:32.30 | duey | haha |
07:32.34 | duey | and none left |
07:32.42 | jasta | you have that much student loans, really? |
07:32.49 | duey | not quite that much |
07:32.57 | jasta | i have been debt free since i was 20. |
07:33.07 | duey | its the only debt i have |
07:33.11 | duey | dont do any hp shit |
07:33.14 | jasta | well it sounds like a really big one :) |
07:33.16 | duey | or creditcards etc |
07:33.22 | duey | yeah but its for a carrer |
07:33.34 | chaosvoyager | hmm, you can probably aviod the tax hit if you use it to pay student loans too. |
07:33.42 | duey | pay it off in a year with a job |
07:33.44 | jasta | chaosvoyager: very unlikely in the US. |
07:34.00 | jasta | duey: $200K of debt paid off in 1 year? what profession are you getting into buddy? :) |
07:34.05 | duey | 25k |
07:34.08 | duey | not 200k |
07:34.14 | jasta | oh, i thought you meant the grand prize |
07:34.17 | duey | na |
07:34.26 | jasta | even still |
07:34.32 | jasta | $25K would be very hard to pay off in a year |
07:34.35 | muthu | duey: what's your project? |
07:34.47 | muthu | i know you said already |
07:34.50 | muthu | ok.. remember |
07:34.52 | duey | muthu, ocr pictures taken with phone and translate them |
07:34.55 | jasta | duey: if you're going to be a programmer, your entry-level salary is probably not going to exceed $70K. |
07:34.59 | muthu | right.. got it |
07:35.14 | duey | jasta, ok so that leaves 50k for me to spend on...? |
07:35.20 | duey | flat |
07:35.22 | duey | and food |
07:35.26 | jasta | $70K will give you about $58K after taxes. |
07:35.29 | duey | and a severe coffee addiction |
07:35.38 | duey | oh right |
07:35.41 | duey | even then |
07:35.59 | duey | my student loan is actually only 15k |
07:36.02 | duey | and thats NZD |
07:36.03 | muthu | my app broke, when i changed the theme |
07:36.09 | jasta | less $25K, that's a very low salary for a year. |
07:36.17 | muthu | i pat myself for my excellent coding skills |
07:36.26 | duey | jasta, sure but im a student |
07:36.33 | duey | have minimal expenses |
07:36.37 | jasta | perhaps i just never got used to that lifestyle :) |
07:36.49 | duey | yeah i wouldnt do that anyway |
07:36.54 | duey | 10k/year |
07:36.57 | duey | for student loan |
07:37.02 | jasta | i sort of live it now though. i pay $450/mo rent and own my car outright. my monthly expenses are very low ;) |
07:37.03 | duey | rest for coffee |
07:37.03 | duey | ! |
07:37.27 | muthu | 6 packs?? |
07:37.31 | duey | ? |
07:37.35 | jasta | my gf takes a lot of my money :) |
07:37.38 | duey | haha |
07:37.40 | chaosvoyager | How far are you along in your project duey? |
07:37.49 | duey | no comment |
07:38.01 | jasta | she's going to school, and had tons of debt, so she has absolutely no money ever |
07:38.08 | duey | ah |
07:38.27 | jasta | i basically have to pay for everything to keep her afloat. |
07:38.29 | duey | chaosvoyager, its my honours project |
07:38.35 | romainguy_ | "i pay $450/mo rent " << oh god I wish the rent was the same here |
07:38.49 | jasta | romainguy_: the rent is not normally $450/mo in seattle :) |
07:39.09 | romainguy_ | what's the usual rent? |
07:39.12 | jasta | I live in a house with 3 other guys, and it was an absolute steal. the landlord has no idea...she could charge another $1K/mo for the place. |
07:39.17 | duey | wait for the housing market to crash jasta |
07:39.23 | duey | crash further* |
07:39.26 | chaosvoyager | blah..whatthe... |
07:39.28 | romainguy_ | jasta: still, I wish my rent was $750 :)) |
07:39.28 | duey | get some houses cheap |
07:39.33 | jasta | romainguy_: a 1 bedroom apartment in north seattle (where I live) is usually about $900/mo. |
07:39.41 | romainguy_ | wow |
07:39.42 | duey | romainguy_, surely you can sleep in your office?! |
07:39.54 | jasta | but you can find deals on houses if you live with people, or are willing to put up with unusual things |
07:40.06 | jasta | romainguy_: If you move into the city further, it goes way, way up :) |
07:40.13 | romainguy_ | jasta: I actually just left a house were I was living with my g/f and 3 other persons |
07:40.24 | romainguy_ | cheaper rent but eh, living with 3 other people :)) |
07:40.31 | jasta | my friend shared a 1500 sq ft house with someone on queen anne and it cost each of them $1300/mo. |
07:40.39 | muthu | when you are single, better to live with friends |
07:40.48 | jasta | romainguy_: The kicker is that my house is *HUGE*, so living with roommates is not a struggle. |
07:40.58 | muthu | the money saved, can be huge.. will help you later |
07:41.05 | romainguy_ | jasta: it wasn't either, but still doesn't really feel like home :) |
07:41.26 | jasta | and the roommate closes to me i get along with really well |
07:41.30 | jasta | closest* |
07:41.44 | jasta | but yeah, i will probably be moving out when i can afford to buy a place |
07:42.07 | jasta | i'm having a little anxiety about it though. not sure i am ready to give up this bachelor pad lifestyle :) |
07:42.17 | jasta | we have a pool table and wet bar upstairs in our living room |
07:42.23 | muthu | jasta: enjoy while it lasts |
07:42.24 | jasta | i love it :) |
07:42.30 | romainguy_ | jasta: see I don't have this issue, living on a work visa, it would be kinda hard to buy a house :) |
07:42.48 | muthu | romainguy_: it doesn't matter |
07:43.04 | muthu | anyone can buy a house |
07:44.08 | jasta | romainguy_: so are you a part of these little code days that google has been hosting? |
07:44.14 | jasta | i'd love the opportunity to meet you in person |
07:44.22 | muthu | android.content.Resources$NotFoundException: Resource is not a ColorStateList (color or path): TypedValue{t=0x2/d=0x1010050 a=1} |
07:44.23 | duey | romainguy_, say no! |
07:44.33 | duey | :P |
07:44.34 | jasta | you've been extraordinarily helpful. |
07:45.04 | muthu | jasta: the exception occurs when i change the theme |
07:45.18 | muthu | wierd |
07:45.26 | jasta | i dunno man, i haven't played with that stuff :) |
07:45.32 | jasta | the dark theme is so nice, why change it? |
07:45.45 | muthu | experimentation |
07:45.53 | chaosvoyager | Branding :) |
07:46.00 | jasta | duey: i think he dodged my question :) |
07:46.08 | muthu | ha ha |
07:46.17 | muthu | he answered it indirectly |
07:46.19 | muthu | :) |
07:46.24 | jasta | heeh |
07:47.07 | muthu | romain logged out.. not coming back for a week ;) |
07:47.20 | muthu | lol |
07:47.57 | muthu | romainguy_: how can android crash my app if change the theme? |
07:48.12 | muthu | Theme.Dark to Theme.Light |
07:48.25 | muthu | and it gives me some funny color not in list exception |
07:50.05 | chaosvoyager | The Dark Theme is not stronger. No. Quicker, easier, more seductive. ... |
08:09.03 | romainguy_ | jasta: romainguy_: so are you a part of these little code days that google has been hosting? << no, sorry :) You can come see me speak at JavaOne though :)) |
08:10.12 | jasta | what's your topic? |
08:10.29 | romainguy_ | Filthy Rich Clients and Extreme GUI Makeover |
08:10.38 | romainguy_ | or how to pimp your apps :) |
08:10.42 | jasta | i may read your book |
08:11.41 | romainguy_ | it's a good read :) |
08:11.42 | chaosvoyager | Sounds familiar. |
08:11.46 | romainguy_ | anway, going to bed now |
08:11.49 | romainguy_ | good night guys |
08:11.53 | chaosvoyager | nite |
08:13.22 | chaosvoyager | Huh, wish some more of that Filth would be present in Android. |
08:26.44 | muthu | have a great weekend folks |
08:26.57 | muthu | i'm done.. off to the bar now ;) |
08:27.08 | chaosvoyager | k |
08:27.08 | muthu | yoooohooooo! |
08:27.19 | *** part/#android muthu (n=sara@59.92.89.234) |
08:28.17 | jasta | i passed up a party tonight to write android code ;) |
08:29.58 | chaosvoyager | at least it shows you're driven to succeed. |
08:30.10 | chaosvoyager | Or that the party sucked. |
08:30.27 | jasta | party probably would have sucked ;) |
08:56.07 | *** join/#android bluerayblue__ (n=chatzill@adsl-69-226-216-36.dsl.pltn13.pacbell.net) |
09:13.44 | *** join/#android davidw (n=davidw@apache/committer/davidw) |
09:16.58 | *** join/#android der_maddis (n=der_madd@dslb-088-067-244-157.pools.arcor-ip.net) |
09:30.38 | jasta | bed time |
09:50.18 | *** join/#android acsia (n=acsia@host86-164-94-145.range86-164.btcentralplus.com) |
09:50.24 | acsia | morning |
10:02.37 | *** join/#android illustir (n=alper@s55912056.adsl.wanadoo.nl) |
10:35.36 | *** part/#android chaosvoyager (n=Miranda@pool-72-80-180-212.nycmny.fios.verizon.net) |
10:58.02 | *** join/#android Mathiasdm (n=Mathias@d54C597B6.access.telenet.be) |
11:25.36 | *** join/#android pombred1 (n=pombreda@c-67-180-198-25.hsd1.ca.comcast.net) |
11:52.16 | *** join/#android bluerayblue__ (n=chatzill@adsl-69-226-216-36.dsl.pltn13.pacbell.net) |
11:57.31 | *** join/#android kurzum (n=opera@chello084112021199.32.11.tuwien.teleweb.at) |
12:03.50 | *** join/#android aksyn (n=aksyn@78-86-127-220.zone2.bethere.co.uk) |
12:14.18 | *** join/#android [AD]Turbo (n=turbo@host131-128-dynamic.57-82-r.retail.telecomitalia.it) |
12:14.22 | [AD]Turbo | hi all |
12:14.56 | davidw | ciao |
12:15.29 | [AD]Turbo | ciao davidw |
12:36.36 | *** join/#android der_maddi1 (n=der_madd@dslb-088-067-235-162.pools.arcor-ip.net) |
12:47.49 | *** join/#android crib (n=chris@port-195-158-167-8.dynamic.qsc.de) |
13:00.15 | jtoy | anyone around? |
13:00.19 | davidw | yeah |
13:00.33 | davidw | can you test something out for me? send email to translations@innsbruck-apartments.com |
13:00.40 | jtoy | ok |
13:02.27 | jtoy | sent |
13:02.57 | davidw | it bounce? |
13:03.13 | jtoy | yes |
13:05.22 | davidw | aha... got it |
13:05.24 | davidw | lunch time |
13:05.27 | jtoy | i have a general design question, I haven't worked with small devices before, I need to upload a generated file from android over http to a webserver using POST, can I generate the file in real time and send it, or do i need to generate, then save it to disk, then send it, or are tehre other methods? |
13:05.45 | jtoy | do you know what I mean? |
13:16.03 | *** join/#android pombreda (n=pombreda@c-67-180-198-25.hsd1.ca.comcast.net) |
13:38.40 | *** join/#android Dralspire (n=dralspir@199-96.126-70.tampabay.res.rr.com) |
13:40.20 | *** join/#android mike1o (n=mike@host221-166-dynamic.14-87-r.retail.telecomitalia.it) |
14:06.22 | *** join/#android dfas` (n=none@10.201.216.81.static.s-o.siw.siwnet.net) |
14:08.16 | *** join/#android [AD]Turbo (n=turbo@host131-128-dynamic.57-82-r.retail.telecomitalia.it) |
14:28.18 | *** join/#android mypapit (n=mypapit@pdpc/supporter/active/mypapit) |
14:35.03 | *** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
14:38.52 | davidw | jtoy, you can send it as a stream |
14:40.06 | *** join/#android krau (n=cktakaha@189.70.14.252) |
14:41.38 | jtoy | so do it in real? arent there lots of problems with that method? |
14:44.27 | *** join/#android lenni_-_ (n=lenni@92.12.152.212) |
14:45.38 | lenni_-_ | I'm having trouble opening the Android tutorial in eclipse |
14:46.38 | lenni_-_ | i downloaded the zip from google but eclipse doesn't seem to find the package name |
14:48.42 | *** part/#android lenni_-_ (n=lenni@92.12.152.212) |
14:52.59 | *** join/#android pombreda (n=pombreda@c-67-180-198-25.hsd1.ca.comcast.net) |
15:56.25 | *** join/#android eton (n=eton@ppp-58-8-2-146.revip2.asianet.co.th) |
16:33.07 | kurzum | got the sdk? :) |
16:38.38 | *** join/#android f00f- (i=f00f@virusexperts.com) |
16:55.30 | *** join/#android whiter4bbit (n=whiter4b@mx.itransition.com) |
17:18.09 | *** join/#android Zoolooc (n=fredsiba@nrbg-4dbff346.pool.einsundeins.de) |
17:46.03 | *** join/#android kuryaki (n=kuryaki@190.84.248.168) |
18:18.03 | *** join/#android bluerayblue__ (n=chatzill@adsl-69-226-216-36.dsl.pltn13.pacbell.net) |
18:23.48 | *** part/#android kurzum (n=opera@chello084112021199.32.11.tuwien.teleweb.at) |
18:35.29 | *** part/#android dfas (n=none@10.201.216.81.static.s-o.siw.siwnet.net) |
18:49.36 | *** join/#android Adys (n=Adys@unaffiliated/adys) |
19:11.54 | *** join/#android _avatar (n=avatar@cpe-76-88-201-161.bak.res.rr.com) |
19:12.58 | *** join/#android d3ce1t (n=srg@144.Red-88-2-126.staticIP.rima-tde.net) |
19:20.24 | *** join/#android Mathiasdm (n=Mathias@d54C597B6.access.telenet.be) |
19:20.26 | *** join/#android illustir (n=alper@s5590818c.adsl.wanadoo.nl) |
19:41.19 | *** join/#android Dan_U (n=Dan@70-41-192-219.cust.wildblue.net) |
19:41.29 | *** join/#android dragor43 (n=asdf@151.199.245.93) |
19:59.07 | *** join/#android _avatar (n=avatar@cpe-76-88-201-161.bak.res.rr.com) |
20:04.02 | dragor43 | Anyone have an idea on how to do get an Activity to send data back to it's calling Activity? |
20:05.16 | dragor43 | The Maps application must be doing this... when you do a search on the map a transparent list pops up, and when you select items from the list it moves the map location to the lat/long of the entry you selected. |
20:05.55 | *** join/#android Mathiasdm (n=Mathias@d54C597B6.access.telenet.be) |
20:07.43 | *** join/#android acsia (n=acsia@host86-161-118-239.range86-161.btcentralplus.com) |
20:16.09 | *** join/#android Stephmw (n=steph@tangency.co.uk) |
20:17.46 | *** join/#android edcba (n=edcba@lns-bzn-22-82-249-125-238.adsl.proxad.net) |
20:19.32 | zhobbs | dragor43: you can use setResult() and pass in a bundle, etc |
20:20.25 | jasta | yawn |
20:21.06 | jasta | dragor43: startSubActivity |
20:21.33 | zhobbs | yeah, startSubActivity(), onActivityResult(), setResult(), etc |
20:21.44 | dragor43 | yeah i know that, but the weird thing is that the activity doesn't end |
20:21.57 | dragor43 | it's sending information back to the parent without closing the child activity |
20:22.04 | jasta | finish ends an activity, otherwise it won't |
20:22.10 | dragor43 | ooooh |
20:22.14 | jasta | setResult doesn't finish |
20:22.26 | zhobbs | dragor43: you're talking on the google maps app right? |
20:22.36 | dragor43 | aha. wow and here i thought it was this elaborate hack. haha |
20:22.37 | dragor43 | yes i am |
20:22.38 | zhobbs | not sure how they do all those dialogs.... |
20:22.54 | dragor43 | yeah, those dialogs are bit buggy too :) |
20:23.06 | zhobbs | they're pretty cool though |
20:28.49 | jasta | let's see, what to work on this morning |
20:32.27 | jasta | wow |
20:32.48 | jasta | just did a line count on my project, 8174 so far :) |
20:32.58 | jasta | and still so much more left to do |
20:32.59 | zhobbs | you been busy |
20:33.10 | jasta | yes |
20:33.13 | jasta | the first 5K came quick :) |
20:33.14 | zhobbs | what's an easy command to do a linecount? |
20:33.19 | jasta | i did: |
20:33.25 | jasta | $ wc -l $(find -name "*.java" -or -name "*.[ch]") | tail -1 8174 total |
20:34.38 | jasta | i suppose it would be more accurate to exclude the auto-generated aidl interfaces and include the original aidl files, but that won't account for much |
20:34.42 | jasta | like 500 lines at best |
20:35.19 | jasta | If I include *.xml, it jumps to 8821 ;) |
20:36.07 | jasta | some of my older modules have SVN revisions well into the 200s ;) |
20:36.47 | zhobbs | I only get 5600 including xml :( |
20:37.06 | jasta | my project is very elaborate :) |
20:37.16 | jasta | i had to include *.[ch] because I wrote quite a lot of C code as well |
20:37.31 | zhobbs | mine is actually very simple |
20:37.40 | zhobbs | plus no server component |
20:37.41 | jasta | 2600 lines of C |
20:37.44 | jasta | just counted |
20:39.03 | jasta | i have 4 separate modules, a SyncML client library written in Java, the server using libsyncml in C, my synchronization engine and associated activities, and finally the music player which utilizes the engine's provider and services. |
20:39.13 | *** join/#android bluerayblue__ (n=chatzill@adsl-69-226-216-36.dsl.pltn13.pacbell.net) |
20:39.43 | jasta | the music player itself is only a week old. i spent most of my initial time making sure the synchronization pieces were working well. |
20:40.03 | jasta | which probably wasn't good for the challenge, since judging seems to be so narrow |
20:40.08 | jasta | but it's better for the project itself :) |
20:41.43 | jasta | the provider and service engine could easily be dropped into any type of application too. i'm really proud of how i have designed this. |
20:41.44 | zhobbs | the pretiest player wins :) |
20:42.10 | jasta | my player's going to still be pretty :) |
20:42.26 | jasta | my gf is helping me. she's very artistic :) |
20:43.02 | jasta | i'm heavily integrating with last.fm as well. |
20:43.02 | romainguy_ | jasta: If I include *.xml, it jumps to 8821 << ah! it's not even the number of lines of code used by Listview :)) |
20:44.11 | zhobbs | romainguy_: what's the android line count? |
20:44.11 | jasta | i disassembled ListView.class and it's only 1800. you sure about that? :) |
20:44.32 | romainguy_ | jasta: disassemble AbsListview and AdapterView too :) |
20:44.34 | dragor43 | must be 6000 lines of comments! |
20:44.42 | zhobbs | hehe |
20:44.45 | romainguy_ | zhobbs: can't say :) |
20:44.54 | romainguy_ | but last time I checked it was a lot :) |
20:45.12 | jasta | getting closer, 4000 :) |
20:45.44 | zhobbs | jasta: what decompiler you use, I haven't tried that yet |
20:46.00 | romainguy_ | zhobbs: note hat according to the rules you're not supposed to decompile the code ;-) |
20:46.05 | jasta | i use JAD. it's very helpful because these folks won't give us source :) |
20:46.29 | zhobbs | romainguy_: the license or ADC? |
20:46.39 | romainguy_ | the license |
20:46.53 | jasta | i am not concerned ;) |
20:46.56 | zhobbs | oh yeah, I remember reading that just before I hit "Accept" :) |
20:47.16 | jasta | you guys have a lot of black magic in here. |
20:47.39 | romainguy_ | not really |
20:48.01 | jasta | thought i must admit that the more i develop against Android, the less need i have to even look back at the documentation, let alone source. |
20:48.04 | jasta | though* |
20:48.17 | romainguy_ | I think it's called "learning" :) |
20:48.18 | zhobbs | jasta: hmm, don't seen jad in ubuntu repo |
20:48.23 | jasta | zhobbs: no, and it's not. |
20:48.28 | zhobbs | k |
20:48.42 | jasta | romainguy_: No, surely that's not it :) |
20:48.56 | dragor43 | if you use eclipse there's a plugin that will automatically decompile .class files that you open. JADclipse |
20:49.30 | jasta | romainguy_: I did post a really annoying discrepency I found yesterday though. A Service's stopSelf() is said to not actually stop or destroy the service until all connected clients have disconnected. |
20:49.34 | zhobbs | hmmm, wonder if that will work when debugging and get exception in android.jar |
20:49.39 | jasta | However, stopSelf() seems to immediately severe active connections and destroy itself |
20:49.45 | romainguy_ | yeah I saw your bug |
20:49.49 | jasta | sever* |
20:50.28 | jasta | what is the deal with that? the docs aren't precisely clear, but they do imply that the behaviour i observed is not right. |
20:51.14 | jasta | brb, breakfast |
20:51.15 | zhobbs | romainguy_ probably has never looked at the service stuff |
20:51.57 | jasta | probably not |
20:52.11 | jasta | but he might be able to go knock someone around who has :) |
20:52.30 | romainguy_ | jasta: "the docs aren't precisely clear, but they do imply that the behaviour i observed is not right."" |
20:52.36 | romainguy_ | Android is under heavy development |
20:52.44 | romainguy_ | and it's not surprising that kind of stuff happens |
20:53.02 | jasta | i know, which is why i approached it that way |
20:53.10 | jasta | it's hard to tell if it's a bug in source, or a bug in documentation. |
20:53.54 | jasta | i think it's a bug in the source, though, because if this doesn't work then how the hell are you supposed to let your service die when it's done doing work? |
20:56.49 | jasta | i suppose i could just watch on my service's unregisterObserver method and when the last listener is gone, stopSelf(). |
20:57.16 | jasta | but that seems like a race condition. |
21:04.29 | zhobbs | hmmmm...eclipse isn't finding JADclipse |
21:05.37 | zhobbs | ahh..wrong folder |
21:05.48 | *** join/#android bluerayblue__ (n=chatzill@adsl-69-226-216-36.dsl.pltn13.pacbell.net) |
21:10.53 | *** join/#android TimRiker (n=timr@rikers.org) |
21:12.45 | davidw | hrm |
21:12.59 | davidw | so... this gtalk message + intent thing... |
21:13.03 | davidw | anyone cracked that one? |
21:14.22 | dragor43 | are you asking if someone figured out how to capture an incoming gtalk message? |
21:15.17 | davidw | yeah |
21:15.40 | davidw | well, apparently you can if you use an intentreceiver |
21:15.52 | davidw | and the gtalk sender adds some extra bits to the message |
21:15.53 | dragor43 | right |
21:16.28 | dragor43 | there's example code out there showing the intentreceiver used to capture the message |
21:16.55 | dragor43 | it's for m37 but it works for m5 too, you just need to change the package names from XMPP to GTalk |
21:17.31 | *** join/#android duey (n=Nick@203.96.223.40) |
21:18.49 | jasta | m37? :) have we regressed? :) |
21:31.33 | davidw | hrm... not finding it |
21:31.42 | davidw | I need to generate the XML though |
21:55.11 | *** join/#android duey (n=Nick@203.96.223.40) |
21:56.27 | *** join/#android foysavas (n=foysavas@146-115-47-76.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com) |
22:05.56 | *** join/#android Adys (n=Adys@unaffiliated/adys) |
22:20.27 | f00f- | hi. it seems like the ContentProvider for Im.Contacts returns 15 columns |
22:21.18 | f00f- | specifically, it's like it implicitly does a join on between the contacts and presence |
22:21.28 | jasta | it probably does |
22:21.39 | f00f- | so less work for me :D |
22:21.51 | jasta | thats the point of content providers |
22:22.07 | f00f- | i wasn't expecting it to be joined |
22:22.14 | f00f- | as per our previous discussion |
22:22.36 | jasta | i told you that if you found a content uri which had a join in the provider, it would do exactly as you need. |
22:22.50 | f00f- | oh you did? |
22:22.50 | f00f- | heh |
22:22.53 | jasta | yes, i did. |
22:23.04 | *** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
22:23.07 | jasta | but that if you did not, you would not have any option but to try to merge the data yourself. |
22:23.31 | f00f- | yeah i'm glad i did a bit of dissecting here |
22:24.08 | jasta | romainguy_: you around? |
22:28.24 | *** join/#android eton (n=eton@ppp-58-8-2-78.revip2.asianet.co.th) |
22:37.40 | jasta | Hmm. |
22:44.43 | f00f- | what does getResources return ? |
22:45.08 | jasta | a reference to your applications resource collection, i believe. |
22:45.12 | jasta | i would have to confirm |
22:45.25 | f00f- | do you know what type it is? |
22:45.31 | f00f- | i'm trying to avoid calling getResources() all over the place |
22:45.36 | jasta | Resources |
22:45.40 | jasta | the docs will tell you that |
22:46.07 | f00f- | i hate the sdk |
22:46.09 | f00f- | docs |
22:46.15 | f00f- | it eats up some much ram in firefox :/ |
22:46.21 | jasta | use the local copy stupid |
22:46.45 | f00f- | i am stupid |
22:46.58 | jasta | with the SDK is an offline copy of all the documentation |
22:46.59 | f00f- | even with the local copy it's slow |
22:47.07 | jasta | it doesn't do all that stupid searching crap |
22:47.22 | f00f- | it seems that there's something up with the page itself |
22:47.30 | jasta | the online version is very slow for me, but the local copy is fine. |
22:47.42 | jasta | i leave it open for days |
22:48.34 | jasta | either way, i will not serve as your portal to the docs. |
22:49.06 | f00f- | you already did :) |
22:49.46 | jasta | romainguy_: there is definitely magic in this compound control technique you suggested. how on earth does TwoLineListItem specify it's two children? It looks to be defined in XML, but where? how? |
22:50.31 | jasta | it seems that as a lowly mortal, the best i could do is extend a LinearLayout and ViewInflate something taht is a RelativeLayout. So my extended view would contain only 1 child, a RelativeLayout. |
22:56.51 | romainguy_ | jasta: it just uses a ViewInflate |
22:57.52 | jasta | but how could that work? If I extend a RelativeLayout, won't I have a RelativeLayout also specified in the view XML? |
22:58.03 | jasta | So I'd have my extended RelativeLayout containing another RelativelyLayout containing my widgets? |
22:58.50 | f00f- | that's one way of doing it |
22:59.11 | jasta | It sounds silly to me, and I doubt very much that TwoLineListItem, for example, does that. |
22:59.24 | f00f- | twolinelistitem seems like a hack |
22:59.37 | f00f- | its contents are defined in an xml file that's in some jar |
22:59.39 | f00f- | undocumented |
22:59.46 | jasta | That doesn't make it a hack. |
23:00.02 | f00f- | you're right, you should try it. |
23:00.11 | jasta | That's precisely how I intend to implement my compound control, defining it in an XML file entirely. |
23:00.32 | jasta | However I doubt very much that the structure that comes out into TwoLineListItem is a RelativeLayout containing anohter RelativeLayout. |
23:00.58 | romainguy_ | TwoLineListItem is a RelativeLayout |
23:01.04 | romainguy_ | and it inflates an XML that contains a LinearLayout |
23:01.10 | romainguy_ | and in that LinearLayout there are two textView |
23:01.20 | f00f- | http://groups.google.com/group/android-developers/browse_thread/thread/ba05919a9489c686/89e263543886f4c7?lnk=gst&q=simple_list_item_1#89e263543886f4c7 |
23:01.36 | jasta | romainguy_: Then why would TwoLineListItem be a RelativeLayout? Why does that make sense? |
23:01.45 | romainguy_ | it could be a FrameLayout |
23:01.55 | romainguy_ | just any sort of layout |
23:02.07 | jasta | So for my compound widget, I think it would make the most sense to be a LinearLayout that wraps a RelativeLayout. Hmm, this seems goofy. |
23:02.11 | jasta | But sure :) |
23:02.54 | romainguy_ | if only XML let you have more than one root tag :)) |
23:03.06 | romainguy_ | maybe we should have a fake root tag |
23:03.14 | jasta | right, i was thinking i was going to have to wrap it in a relativelayout and gut it and insert it at the root. |
23:03.18 | romainguy_ | so that you could inflate the content of an XML as your direct children |
23:03.24 | jasta | so i'd basically inflate a view, then walk the children and attach them manually. |
23:03.29 | romainguy_ | why bother? |
23:03.49 | jasta | right, i don't want to. i just thought that's what i had to do not realizing that the recommended approach was to just hav ea dummy wrapper. |
23:04.00 | romainguy_ | ideally this wrapper wouldn't be here |
23:04.05 | romainguy_ | but right now it has to be here |
23:04.16 | jasta | i'm fine with that for now, really. |
23:04.23 | romainguy_ | as I said, we should make a special version of ViewInflate.inflate() that would skip the root tag |
23:05.21 | jasta | i think i'm rolling now then |
23:05.33 | jasta | i just call inflate from my constructor and build up there |
23:05.39 | jasta | :q |
23:05.41 | jasta | oops |
23:23.28 | jasta | wow, that was sure easy |
23:32.42 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
23:34.41 | *** join/#android Dan_U (n=Dan@70-41-192-219.cust.wildblue.net) |
23:49.08 | jasta | shoot, i just realized i can't avoid handling onLayout and onMeasure because I have to adjust the sizes and positions of the labels based on the size of the widget |
23:49.11 | jasta | bummer ;) |
23:54.38 | f00f- | what's the best way to add imageview's dynamically to a RelativeLayout at run-time? |
23:54.53 | f00f- | i have 3 combinations of ImageViews that could be added, so don't think i can define those combinations in the XML ? |
23:58.23 | jasta | it would be more efficient to add them all and play with their visibility |