¡@

Home 

2014/10/16 ¤W¤È 08:23:35

android Programming Glossary: searchformfragment

Replacing fragments and orientation change

http://stackoverflow.com/questions/5525152/replacing-fragments-and-orientation-change

I have an activity that includes a fragment defined in layout xml as fragment class org.prevoz.android.search.SearchFormFragment android id @ id search_form_fragment android layout_width fill_parent android layout_height fill_parent The first fragment.. id @ id search_form_fragment android layout_width fill_parent android layout_height fill_parent The first fragment SearchFormFragment is displayed as a default. When user taps a search button I replace the SearchFormFragment with SearchResultsFragment which.. The first fragment SearchFormFragment is displayed as a default. When user taps a search button I replace the SearchFormFragment with SearchResultsFragment which runs an AsyncTask that's why I want to retain it with Show the search results fragment..