{"id":13848903,"url":"https://github.com/siyamed/android-satellite-menu","last_synced_at":"2025-05-16T12:06:17.939Z","repository":{"id":2230142,"uuid":"3182937","full_name":"siyamed/android-satellite-menu","owner":"siyamed","description":"Android Satellite Menu","archived":false,"fork":false,"pushed_at":"2015-07-13T13:11:04.000Z","size":2520,"stargazers_count":1397,"open_issues_count":33,"forks_count":642,"subscribers_count":156,"default_branch":"master","last_synced_at":"2025-04-02T03:15:38.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siyamed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-15T09:29:02.000Z","updated_at":"2025-03-25T13:42:22.000Z","dependencies_parsed_at":"2022-07-31T12:08:02.078Z","dependency_job_id":null,"html_url":"https://github.com/siyamed/android-satellite-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyamed%2Fandroid-satellite-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyamed%2Fandroid-satellite-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyamed%2Fandroid-satellite-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siyamed%2Fandroid-satellite-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siyamed","download_url":"https://codeload.github.com/siyamed/android-satellite-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980836,"owners_count":21027808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T19:01:01.276Z","updated_at":"2025-04-09T05:07:11.815Z","avatar_url":"https://github.com/siyamed.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"#Satellite Menu\n\n'Path' has a very attractive menu sitting on the left bottom corner of the screen. Satellite Menu is the open version of this menu. \n\nFor the ones who didnt see path, the menu consists of a main button on the left bottom of the screen. When the user clicks on this button, a number of buttons are popped out of this button. I have resembled this structure to a planet and satellites and thats why I gave the name of this project. \n\nThe menu uses built-in animations of Android platform. \n\nWorks in API Level 7 (2.1) and above.\n\nLicenced with LGPL. \n\n\u003cimg src=\"http://i.imgur.com/0Igkktd.png\" height=\"250px\" title=\"Android Satellite Menu Expanded\"/\u003e\n\n##Usage\n\nAdd the component definition to your view xml as in the following example:\n\n\n    \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n    \u003cFrameLayout \n        xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        xmlns:sat=\"http://schemas.android.com/apk/res/android.view.ext\"\n        android:layout_width=\"fill_parent\"\n        android:layout_height=\"fill_parent\"\n        android:orientation=\"vertical\" \u003e\n\n        \u003candroid.view.ext.SatelliteMenu\n            android:id=\"@+id/menu\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_gravity=\"bottom|left\" \n            android:layout_margin=\"8dp\"\n            sat:satelliteDistance=\"170dp\"\n            sat:mainImage=\"@drawable/ic_launcher\"\n            sat:totalSpacingDegree=\"90\"\n            sat:closeOnClick=\"true\"\n            sat:expandDuration=\"500\"/\u003e\n    \n    \u003c/FrameLayout\u003e\n\nThe attributes are:\n\n* `satelliteDistance` The distance of items from the center button\n* `totalSpacingDegree` The degree between the first and the last item.\n* `closeOnClick` Defines if the menu shall collapse after clicking on a menu item.\n* `expandDuration` The duration of expand and collapse operations in milliseconds.\n\nAfter defining the view in XML, some menu items can be added from code:\n\n\n    SatelliteMenu menu = (SatelliteMenu) findViewById(R.id.menu);\n    List\u003cSatelliteMenuItem\u003e items = new ArrayList\u003cSatelliteMenuItem\u003e();\n    items.add(new SatelliteMenuItem(4, R.drawable.ic_1));\n    items.add(new SatelliteMenuItem(4, R.drawable.ic_3));\n    items.add(new SatelliteMenuItem(4, R.drawable.ic_4));\n    items.add(new SatelliteMenuItem(3, R.drawable.ic_5));\n    items.add(new SatelliteMenuItem(2, R.drawable.ic_6));\n    items.add(new SatelliteMenuItem(1, R.drawable.ic_2));\n\nEach menu item takes the ID of the item and the drawable resource for the item. \n\nIn order to listen clicks on items:\n\n    menu.setOnItemClickedListener(new SateliteClickedListener() {\n      public void eventOccured(int id) {\n        Log.i(\"sat\", \"Clicked on \" + id);\n      }\n    });\n\nThe click event gives the ID of the item which was defined when adding it. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiyamed%2Fandroid-satellite-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiyamed%2Fandroid-satellite-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiyamed%2Fandroid-satellite-menu/lists"}