kgfullerton
kgfullerton

Reputation: 300

Android: Different widget layouts for Honeycomb/Gingerbread

I'm working a personal project that's going to include a home-screen widget updated with information from a service - I'm developing using a Android 3.1 tablet (physical) as well as an Android 2.3 emulated phone.

For the Honeycomb version, I'd like to use the StackView, building up 3-4 pages which the user can swipe through, whereas this isn't supported on pre-Honeycomb devices, so is there an easy way to

Upvotes: 2

Views: 572

Answers (1)

Kurtis Nusbaum
Kurtis Nusbaum

Reputation: 30825

You can indicate different layout for pre and post Honeycomb by using the v11 qualifier in your layout names. You can also use the Build class to detect what Build version you're running on and then load the appropriate layout.

Upvotes: 1

Related Questions