[android-developers] Confused: which Android versions should we support, and how?

2011-11-04 Thread Zsombor
I'm currently working on an application for quite a few months now that should target the largest audience possible, all the way down to 2.2. But I'm getting increasingly confused about how exactly I should deal with the newer Android versions. I want to be able to use the new features introduced

[android-developers] Re: ViewPager in a ListView - how to lock the scrolling axis?

2011-11-02 Thread Zsombor
work. On Oct 27, 1:21 am, Dianne Hackborn hack...@android.com wrote: How exactly do you recycle the list view items correctly?  This is...  crazy. On Wed, Oct 26, 2011 at 2:25 AM, Zsombor scythe...@gmail.com wrote: I have a ViewPager widget in every row of a ListView. This provides

[android-developers] ViewPager in a ListView - how to lock the scrolling axis?

2011-10-26 Thread Zsombor
I have a ViewPager widget in every row of a ListView. This provides a shelf-like UI, so the user can scroll around searching for a shelf vertically, and then scroll horizontally amongst the contents of a shelf. This works. But the scrolling experience is terrible: if I start to drag a shelf's

[android-developers] Is there a callback that gets called right after onResume() ?

2011-08-06 Thread Zsombor
Is there a callback that gets a call when everything in the current Activity got rendered? Because I need to know the exact sizes of some of my ViewGroups (their width/height are set using layout_weight in the layout xml), so I know how many elements fit inside them without scrolling. But I can

[android-developers] Is there a way to display fragments in TabHost?

2011-07-26 Thread Zsombor
I'd like to show a different fragment in a TabHost, for every tab. But it seems that there's no easy way to do this. TabHost can only accept A. Views or B. Intents that launch Activities when the user selects a tab. Going with A means that I have to initialize every fragment and load them into

[android-developers] Re: Horizontal List View

2011-07-18 Thread Zsombor
I couldn't find a decent alternative to this either. It seems that ListView can't be extended to somehow get it to display the elements horizontally. And replicating ListView is a pain too, because it's using some private apis. So you either come up with your own HorzontalListView implementation,

[android-developers] ScrollView focus problem

2011-07-14 Thread Zsombor
I have a quite large form, with a bunch of EditText elements, inside a ScrollView. It works as intended when I scroll directly (not flinging) with the ScrollView. But when I fling it, as soon as my finger leaves the screen's surface, the ScrollView forces an EditText (or a focusable element) to

[android-developers] How to achieve TextView animation as seen in the Market app?

2011-06-30 Thread Zsombor
Hey, In the Market app, when an application is selected, the TextView containing the description of the app. only show the first 3-4 lines of the full text. Clicking the 'more' button animates this view, so the full text is visible. And this TextView is in a ListView (I guess). How can I achieve

[android-developers] Re: What are your thoughts on this service - activity communication pattern?

2011-06-26 Thread Zsombor
Thanks, it seems that I'm overthinking the problem a bit, I'll just skip the postbox stuff. On Jun 25, 9:52 pm, Kostya Vasilyev kmans...@gmail.com wrote: If the service process is killed, it won't have its onDestroy called, and won't have a chance to update shared preferences indicating it's

[android-developers] What are your thoughts on this service - activity communication pattern?

2011-06-24 Thread Zsombor
My activities start long running jobs that involve network communication. So handling these jobs with an IntentService seems perfectly reasonable. I also need to handle the results of these jobs, if the Activity that started this is active in the time of completion. The case that gave me a