1

changing fragment layout onItemSelected

view story
linux-howto

http://stackoverflow.com – hey i have a spinner in my fragment, upon which, when a user selects an item from the list, i want the details of the item to be showed under the spinner. Say when option 1 is selected, i want the layout i created for option1 to be shown. Here is what i mean: ///////////////// /// SPINNER ///// // // // // // // // layout // // // // // // // // // ///////////////// Here is my code if anyone wants a look: public class PackagesFragment extends SherlockFragment { private Spinner spinner1; @Override pub (HowTos)