I think switching it in setContentView() is exactly right.  The main
question then is, how do you decide which user gets which layout, and
how do you make it consistent?  The latter, I would accomplish by
writing something into Shared Preferences.


On Sep 7, 2:16 pm, Jose Ayerdis <joseayer...@gmail.com> wrote:
> Is there a way that I can intercept when does android decided which layout
> to use, like for instance I want to have two different kind layouts tested
> on different set of users, but I would like some random users load the
> regular(even if they have hdpi devices) and others uses the hdpi.
>
> The only thing that comes to mind is override the setContentView.
>
> layout/mylayout.xml
> layout-hdpi/mylayout.xml
>
> Sincerly yours,
>
> [Jose Luis Ayerdis Espinoza]
> Necronet.info |
> LinkedIn<http://www.linkedin.com/pub/jose-luis-ayerdis-espinoza/28/7b4/704>|
> Careers
> StackOverflow <http://careers.stackoverflow.com/necronet>

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

Reply via email to