[android-developers] Market style buttons

2009-10-20 Thread DavidG
Is there any documentation that explains how to create buttons in the style of the new market app on the top of the screen? I'm not sure if they're actually buttons or tabs, but I want to recreate that button style in my app (flat gradient buttons that dynamically fill the entire height/width depe

[android-developers] Re: Ubuntu Jaunty and adb not playing well together

2009-04-24 Thread DavidG
Thanks Xavier! That seemed to do the trick, except I moved the file instead of copying it. On Apr 24, 1:49 am, Xavier Le Vourch wrote: > DavidG wrote: > > I just reformatted and installed Ubuntu 9.04 (Jaunty) and I appear to > > be experiencing this same issue. My G1 just isn&#x

[android-developers] Re: Ubuntu Jaunty and adb not playing well together

2009-04-23 Thread DavidG
I just reformatted and installed Ubuntu 9.04 (Jaunty) and I appear to be experiencing this same issue. My G1 just isn't recognized, but it worked fine in Ubuntu 8.10. What exactly is the process to get things working again in 9.04? On Apr 15, 3:36 pm, Zigurd wrote: > My not-very-elegant "solutio

[android-developers] Re: One line causing lots of garbage collection. String.format with float. Help?

2009-04-14 Thread DavidG
float) > > On Tue, Apr 14, 2009 at 2:29 PM, DavidG wrote: > > > That's right, with the code above, it still GCs about 13000 every 2 > > seconds (as long as I'm scrolling the list quickly back and forth). If > > I comment out the formatterline(price = mForma

[android-developers] Re: One line causing lots of garbage collection. String.format with float. Help?

2009-04-14 Thread DavidG
e lose my formatting. On Apr 14, 10:28 am, Marco Nelissen wrote: > When you say that it hasn't improved yourgarbagecollection problem, > do you mean that it still GCs 13000 objects every 2 seconds? > > On Mon, Apr 13, 2009 at 10:42 PM, DavidG wrote: > > > Thanks for the

[android-developers] Re: One line causing lots of garbage collection. String.format with float. Help?

2009-04-13 Thread DavidG
; those every time you need to format a string. > > On Mon, Apr 13, 2009 at 7:37 PM, DavidG wrote: > > > In my ListView, there's one line of code in my ViewBinder that causes > > lots of garbage collection as I scroll through the list, about every > > two seconds...

[android-developers] One line causing lots of garbage collection. String.format with float. Help?

2009-04-13 Thread DavidG
In my ListView, there's one line of code in my ViewBinder that causes lots of garbage collection as I scroll through the list, about every two seconds... D/dalvikvm(16312): GC freed 13171 objects / 659576 bytes in 162ms D/dalvikvm(16312): GC freed 13122 objects / 654128 bytes in 129ms D/dalvikvm(

[android-developers] Resetting checkboxes in a dialog with .setMultiChoiceItems()

2009-04-09 Thread DavidG
I'd like to have a dialog box which prompts the user to select from various checkboxes, then confirm "Ok" or "Cancel". I have this working, but my only issue is the dialog always retains the previous checkbox selection state from the last time the dialog was shown. I'd like to always force the che

[android-developers] Optimizing a ListView with SimpleCursorAdapter and setViewBinder

2009-04-08 Thread DavidG
In my application, I have a ListView with a SimpleCursorAdapter, and using setViewBinder to format each row of data accordingly. It works, but I noticed while debugging that as I scroll up and down my list, the binder's setViewValue() function is called for each row as it is shown on the screen, a

[android-developers] Maintaining scroll position of a ListView

2009-04-07 Thread DavidG
In my app, my main class extends ListActivity and calls a fillData() function to reload the list whenever changes are made. I'm still getting the hang of this, so I borrowed that concept from the Android Notepadv1-Notepadv3 tutorials. Everything works great, however whenever I need to change the l