{"id":13832096,"url":"https://github.com/lorensiuswlt/NewQuickAction3D","last_synced_at":"2025-07-09T16:34:09.054Z","repository":{"id":140198315,"uuid":"2057023","full_name":"lorensiuswlt/NewQuickAction3D","owner":"lorensiuswlt","description":"Gallery3D like quickaction","archived":false,"fork":false,"pushed_at":"2011-10-16T01:22:48.000Z","size":255,"stargazers_count":400,"open_issues_count":16,"forks_count":237,"subscribers_count":52,"default_branch":"master","last_synced_at":"2024-08-05T10:20:10.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lorensiuswlt.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-16T06:20:22.000Z","updated_at":"2024-08-01T06:50:20.000Z","dependencies_parsed_at":"2023-03-11T20:06:12.724Z","dependency_job_id":null,"html_url":"https://github.com/lorensiuswlt/NewQuickAction3D","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction3D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction3D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction3D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction3D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorensiuswlt","download_url":"https://codeload.github.com/lorensiuswlt/NewQuickAction3D/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225575186,"owners_count":17490715,"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-04T10:01:50.832Z","updated_at":"2024-11-20T14:30:29.576Z","avatar_url":"https://github.com/lorensiuswlt.png","language":"Java","funding_links":[],"categories":["Java","etc"],"sub_categories":[],"readme":"NewQuickAction3D\n================\n\nNewQuickAction3D is a small android library to create QuickAction dialog with Gallery3D app style.\n\nHow to Use\n==========\nThis repo includes a sample Activity (__ExampleActivity.java__) to show how to use QuickAction.\n\n\tpublic class ExampleActivity extends Activity {\n\t\t//action id\n\t\tprivate static final int ID_UP     = 1;\n\t\tprivate static final int ID_DOWN   = 2;\n\t\tprivate static final int ID_SEARCH = 3;\n\t\tprivate static final int ID_INFO   = 4;\n\t\tprivate static final int ID_ERASE  = 5;\t\n\t\tprivate static final int ID_OK     = 6;\n\t    \n\t\t@Override\n\t\tpublic void onCreate(Bundle savedInstanceState) {\n\t\t\tsuper.onCreate(savedInstanceState);\n\n\t\t\tsetContentView(R.layout.main);\n\n\t\t\tActionItem nextItem \t= new ActionItem(ID_DOWN, \"Next\", getResources().getDrawable(R.drawable.menu_down_arrow));\n\t\t\tActionItem prevItem \t= new ActionItem(ID_UP, \"Prev\", getResources().getDrawable(R.drawable.menu_up_arrow));\n        \tActionItem searchItem \t= new ActionItem(ID_SEARCH, \"Find\", getResources().getDrawable(R.drawable.menu_search));\n        \tActionItem infoItem \t= new ActionItem(ID_INFO, \"Info\", getResources().getDrawable(R.drawable.menu_info));\n        \tActionItem eraseItem \t= new ActionItem(ID_ERASE, \"Clear\", getResources().getDrawable(R.drawable.menu_eraser));\n        \tActionItem okItem \t\t= new ActionItem(ID_OK, \"OK\", getResources().getDrawable(R.drawable.menu_ok));\n        \n        \t//use setSticky(true) to disable QuickAction dialog being dismissed after an item is clicked\n        \tprevItem.setSticky(true);\n        \tnextItem.setSticky(true);\n\t\t\n\t\t\t//create QuickAction. Use QuickAction.VERTICAL or QuickAction.HORIZONTAL param to define layout \n        \t//orientation\n\t\t\tfinal QuickAction quickAction = new QuickAction(this, QuickAction.VERTICAL);\n\t\t\n\t\t\t//add action items into QuickAction\n        \tquickAction.addActionItem(nextItem);\n\t\t\tquickAction.addActionItem(prevItem);\n        \tquickAction.addActionItem(searchItem);\n        \tquickAction.addActionItem(infoItem);\n        \tquickAction.addActionItem(eraseItem);\n        \tquickAction.addActionItem(okItem);\n        \n        \t//Set listener for action item clicked\n\t\t\tquickAction.setOnActionItemClickListener(new QuickAction.OnActionItemClickListener() {\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onItemClick(QuickAction source, int pos, int actionId) {\n\t\t\t\t\t//here we can filter which action item was clicked with pos or actionId parameter\n\t\t\t\t\tActionItem actionItem = quickAction.getActionItem(pos);\n                 \n\t\t\t\t\tToast.makeText(getApplicationContext(), actionItem.getTitle() + \" selected\", Toast.LENGTH_SHORT).show();\t\t\t    \n\t\t\t\t}\n\t\t\t});\n\t\t\n\t\t\t//set listnener for on dismiss event, this listener will be called only if QuickAction dialog was dismissed\n\t\t\t//by clicking the area outside the dialog.\n\t\t\tquickAction.setOnDismissListener(new QuickAction.OnDismissListener() {\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onDismiss() {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Dismissed\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t});\n\t\t\n\t\t\t//show on btn1\n\t\t\tButton btn1 = (Button) this.findViewById(R.id.btn1);\n\t\t\tbtn1.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tquickAction.show(v);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tButton btn2 = (Button) this.findViewById(R.id.btn2);\n\t\t\tbtn2.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tquickAction.show(v);\n\t\t\t\t}\n\t\t\t});\n\t\t\n\t\t\tButton btn3 = (Button) this.findViewById(R.id.btn3);\n\t\t\tbtn3.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tquickAction.show(v);\n\t\t\t\t\tquickAction.setAnimStyle(QuickAction.ANIM_REFLECT);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n**See http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/ for more information.**\n\n![Example Image](http://londatiga.net/images/quickaction3d_horizontal.png)  ![Example Image](http://londatiga.net/images/quickaction3d_vertical.png) \n\nDeveloped By\n============\n\n* Lorensius W. L. T - \u003clorenz@londatiga.net\u003e\n\nContributors\n============\n\n* Kevin Peck - \u003ckevinwpeck@gmail.com\u003e\n\nChanges\n=======\n\nSee [CHANGELOG](https://github.com/lorensiuswlt/NewQuickAction3D/blob/master/CHANGELOG.md) for details\n\nLicense\n=======\n\n    Copyright 2011 Lorensius W. L. T\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florensiuswlt%2FNewQuickAction3D","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florensiuswlt%2FNewQuickAction3D","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florensiuswlt%2FNewQuickAction3D/lists"}