http://marshal.easymorse.com/?s=fragment
//list Fragment
String[] locations = getResources().getStringArray(R.array.loction_array);
setListAdapter(new ArrayAdapter<String>(getActivity(), R.layout.list_item,locations));
/res
/layout-land
/main.xml
/fragment1.xml
/fragment2.xml
/layout-port
/main.xml
/fragment2.xml
/values-xlarge
本文转自老Zhan博客园博客,原文链接:http://www.cnblogs.com/mybkn/archive/2012/04/16/2451459.html,如需转载请自行联系原作者