*/\r
package eu.alefzero.owncloud.ui.fragment;\r
\r
+import com.actionbarsherlock.app.SherlockFragment;\r
+\r
import android.os.Bundle;\r
-import android.support.v4.app.Fragment;\r
import android.view.LayoutInflater;\r
import android.view.View;\r
import android.view.ViewGroup;\r
import eu.alefzero.owncloud.ui.adapter.LandingScreenAdapter;\r
\r
/**\r
- * Used on the Landing page to display what Components of \r
- * the ownCloud there are. Like Files, Music, Contacts, etc.\r
+ * Used on the Landing page to display what Components of the ownCloud there\r
+ * are. Like Files, Music, Contacts, etc.\r
* \r
* @author Lennart Rosam\r
- *\r
+ * \r
*/\r
-public class LandingPageFragment extends Fragment {\r
+public class LandingPageFragment extends SherlockFragment {\r
+\r
+ @Override\r
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,\r
+ Bundle savedInstanceState) {\r
+ View root = inflater.inflate(R.layout.landing_page_fragment, container);\r
+ return root;\r
+ }\r
\r
- @Override\r
- public View onCreateView(LayoutInflater inflater, ViewGroup container,\r
- Bundle savedInstanceState) {\r
- View root = inflater.inflate(R.layout.landing_page_fragment, container);\r
- return root;\r
- }\r
+ @Override\r
+ public void onActivityCreated(Bundle savedInstanceState) {\r
+ super.onActivityCreated(savedInstanceState);\r
\r
+ ListView landingScreenItems = (ListView) getView().findViewById(\r
+ R.id.homeScreenList);\r
+ landingScreenItems.setAdapter(new LandingScreenAdapter(getActivity()));\r
+ landingScreenItems\r
+ .setOnItemClickListener((LandingActivity) getActivity());\r
+ }\r
\r
- @Override\r
- public void onActivityCreated(Bundle savedInstanceState) {\r
- super.onActivityCreated(savedInstanceState);\r
- \r
- ListView landingScreenItems = (ListView) getView().findViewById(R.id.homeScreenList);\r
- landingScreenItems.setAdapter(new LandingScreenAdapter(getActivity()));\r
- landingScreenItems.setOnItemClickListener((LandingActivity) getActivity());\r
- }\r
- \r
- \r
}\r