moving from eu.alefzero.eu to com.owncloud.android
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / ui / fragment / LandingPageFragment.java
diff --git a/src/eu/alefzero/owncloud/ui/fragment/LandingPageFragment.java b/src/eu/alefzero/owncloud/ui/fragment/LandingPageFragment.java
deleted file mode 100644 (file)
index dd7ca31..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/* ownCloud Android client application\r
- *   Copyright (C) 2011  Bartek Przybylski\r
- *\r
- *   This program is free software: you can redistribute it and/or modify\r
- *   it under the terms of the GNU General Public License as published by\r
- *   the Free Software Foundation, either version 3 of the License, or\r
- *   (at your option) any later version.\r
- *\r
- *   This program is distributed in the hope that it will be useful,\r
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- *   GNU General Public License for more details.\r
- *\r
- *   You should have received a copy of the GNU General Public License\r
- *   along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
- *\r
- */\r
-package eu.alefzero.owncloud.ui.fragment;\r
-\r
-import android.content.Intent;\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 android.widget.AdapterView;\r
-import android.widget.AdapterView.OnItemClickListener;\r
-import android.widget.GridView;\r
-import android.widget.Toast;\r
-import eu.alefzero.owncloud.R;\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
- * \r
- * @author Lennart Rosam\r
- *\r
- */\r
-public class LandingPageFragment extends Fragment implements OnItemClickListener {\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
-\r
-       @Override\r
-       public void onActivityCreated(Bundle savedInstanceState) {\r
-               super.onActivityCreated(savedInstanceState);\r
-               GridView grid = (GridView) getView().findViewById(R.id.gridview);\r
-               grid.setAdapter(new LandingScreenAdapter(getActivity()));\r
-               grid.setOnItemClickListener(this);\r
-       }\r
-       \r
-       @Override\r
-       public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r
-               /*\r
-                * Start an activity based on the selection\r
-                * the user made\r
-                */\r
-               Intent intent;\r
-               intent = (Intent) parent.getAdapter().getItem(position);\r
-               if(intent != null ){\r
-                       startActivity(intent);\r
-               } else {\r
-                       Toast toast = Toast.makeText(getActivity(), "Not yet implemented!", Toast.LENGTH_SHORT);\r
-                       toast.show();\r
-               }\r
-       }\r
-\r
-       \r
-       \r
-}\r