Thursday, December 6, 2012

Re: [android-developers] Design Questions about Spinners and Localized Values

On Thu, Dec 6, 2012 at 10:18 AM, Mark Phillips <mark@phillipsmarketing.biz> wrote:
I initially thought to just put arrays in strings.xml for the various units (length, mass, temperature, etc) to simplify the code and translations. However, I end up with a lot of string testing to see which unit was selected.

If you have arrays of string, why are you testing the strings themselves instead of the indices?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
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 email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment