[android-developers] best practices for maintaining translations through app updates

2012-11-23 Thread UgglyNoodle
I am planning to add translations to my Android app. I have created a Get Localization http://www.getlocalization.com/ project for users to translate my string resources. However, I have some concerns. My app is still under constant development, and I typically add features every week or two.

Re: [android-developers] reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)

2012-09-29 Thread UgglyNoodle
I've filed an issue here: http://code.google.com/p/android/issues/detail?id=37990 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: Menu icon contrast

2012-09-29 Thread UgglyNoodle
Take a look at this page: Providing Resourceshttp://developer.android.com/guide/topics/resources/providing-resources.html. You want to provide different drawable resources depending on the platform version. So, for example, your res/drawable-v11 can contain the icons for Honeycomb and above,

Re: [android-developers] Re: Timepicker AM/PM value issue

2012-09-25 Thread UgglyNoodle
I think that the issue here is that there is a bug in the TimePicker for some versions of Android: http://code.google.com/p/android/issues/detail?id=18982 http://code.google.com/p/android/issues/detail?id=24388 While onTimeSet works correctly, I believe, onTimeChanged does not get

Re: [android-developers] Re: Timepicker AM/PM value issue

2012-09-25 Thread UgglyNoodle
Oops sorry, the onTimeSet listener is only for the TimePickerDialog. If you are using just the TimePicker, you may have to follow my second suggestion above. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)

2012-09-25 Thread UgglyNoodle
I figured out exactly what is going wrong. The FragmentStatePagerAdapter caches the fragments and saved states in ArrayLists: mFragments and mSavedState. But when the fragments are reordered, there is no mechanism for reordering the elements of mFragments and mSavedState. Therefore, the

[android-developers] Re: reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)

2012-09-25 Thread UgglyNoodle
Just to be clear, the implementation of getItemId() above which always returns position is for the default case where the positions never change. If you want to reorder the items, then you would override this method in your subclass. -- You received this message because you are subscribed to

[android-developers] reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)

2012-09-24 Thread UgglyNoodle
I believe that FragmentStatePagerAdapter does not behave correctly when overriding getItemPosition(Object object) with the purpose of reordering the pages. Below is a simple example. In the initial state, the order of the pages is {A, B, C}. Upon calling toggleState(), the order of the pages

Re: [android-developers] reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)

2012-09-24 Thread UgglyNoodle
On Monday, September 24, 2012 1:22:40 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Mon, Sep 24, 2012 at 4:12 PM, UgglyNoodle jus...@ugglynoodle.comjavascript: wrote: First, it would be nice to know whether I'm correct and these are in fact bugs, or whether I'm doing something

[android-developers] reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)

2012-09-23 Thread UgglyNoodle
I believe that FragmentStatePagerAdapter does not behave correctly when overriding getItemPosition(Object object) with the purpose of reordering the pages. Below is a simple example. In the initial state, the order of the pages is {A, B, C}. Upon calling toggleState(), the order of the pages

Re: [android-developers] using color.xml definitions in string.xml

2012-09-23 Thread UgglyNoodle
Another option is to define the string resource as: string name=my_stringfont fgcolor=#%hSTRING: /font/string Then, you can insert the colour using: String.format(getString(R.string.tasksnotify_format_colourful), getColor(R.color.my_color_defintion)) On Sunday, September 23, 2012

[android-developers] Re: Posts not showing up?

2012-09-22 Thread UgglyNoodle
If anybody has information on how to contact the moderators for this group, it would be much appreciated. I'm also waiting for a post to appear! On Tuesday, September 18, 2012 1:03:38 AM UTC-7, Martijn van Mechelen wrote: Can one of the moderators please reply? Op donderdag 13 september

Re: [android-developers] Re: Numberpicker vs Android 2.x

2012-09-21 Thread UgglyNoodle
SimonVT has created a backport of the NumberPicker to Android 2.1: https://github.com/SimonVT/android-numberpicker I haven't used it myself, but I hope it works for you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this