{"id":13832098,"url":"https://github.com/lorensiuswlt/NewQuickAction","last_synced_at":"2025-07-09T16:34:05.725Z","repository":{"id":51397340,"uuid":"1355834","full_name":"lorensiuswlt/NewQuickAction","owner":"lorensiuswlt","description":"Android QuickAction","archived":false,"fork":false,"pushed_at":"2021-05-12T05:05:38.000Z","size":527,"stargazers_count":584,"open_issues_count":22,"forks_count":214,"subscribers_count":67,"default_branch":"master","last_synced_at":"2024-08-04T10:08:36.663Z","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-02-11T17:03:49.000Z","updated_at":"2024-08-04T10:08:36.664Z","dependencies_parsed_at":"2022-09-25T00:50:23.169Z","dependency_job_id":null,"html_url":"https://github.com/lorensiuswlt/NewQuickAction","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorensiuswlt%2FNewQuickAction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorensiuswlt","download_url":"https://codeload.github.com/lorensiuswlt/NewQuickAction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225575185,"owners_count":17490714,"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.860Z","updated_at":"2024-11-20T14:30:29.148Z","avatar_url":"https://github.com/lorensiuswlt.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"NewQuickAction\n==============\n\nNewQuickAction is a small android library to create QuickAction dialog.\n\nHow to Use\n==========\nThis repo includes a sample Activity (__ExampleActivity1.java__) to show how to use QuickAction.\n\n\tpublic class Example1Activity extends Activity {\n\t\tprivate static final int ID_ADD = 1;\n\t\tprivate static final int ID_ACCEPT = 2;\n\t\tprivate static final int ID_UPLOAD = 3;\n\t\n\t\t@Override\n\t\tprotected void onCreate(Bundle savedInstanceState) {\n\t\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\t\tsetContentView(R.layout.example1);\n\t\t\n\t\t\tActionItem addItem \t\t= new ActionItem(ID_ADD, \"Add\", getResources().getDrawable(R.drawable.ic_add));\n\t\t\tActionItem acceptItem \t= new ActionItem(ID_ACCEPT, \"Accept\", getResources().getDrawable(R.drawable.ic_accept));\n        \tActionItem uploadItem \t= new ActionItem(ID_UPLOAD, \"Upload\", getResources().getDrawable(R.drawable.ic_up));\n       \n        \t//use setSticky(true) to disable QuickAction dialog being dismissed after an item is clicked\n        \tuploadItem.setSticky(true);\n        \n\t\t\tfinal QuickAction mQuickAction \t= new QuickAction(this);\n\t\t\n\t\t\tmQuickAction.addActionItem(addItem);\n\t\t\tmQuickAction.addActionItem(acceptItem);\n\t\t\tmQuickAction.addActionItem(uploadItem);\n\t\t\n\t\t\t//setup the action item click listener\n\t\t\tmQuickAction.setOnActionItemClickListener(new QuickAction.OnActionItemClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onItemClick(QuickAction quickAction, int pos, int actionId) {\n\t\t\t\t\tActionItem actionItem = quickAction.getActionItem(pos);\n\t\t\t\t\n\t\t\t\t\tif (actionId == ID_ADD) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Add item selected\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), actionItem.getTitle() + \" selected\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\n\t\t\tmQuickAction.setOnDismissListener(new QuickAction.OnDismissListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onDismiss() {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Ups..dismissed\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t});\n\t\t\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\tmQuickAction.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\tmQuickAction.show(v);\n\t\t\t\t\tmQuickAction.setAnimStyle(QuickAction.ANIM_GROW_FROM_CENTER);\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/quickaction1.png)  ![Example Image](http://londatiga.net/images/quickaction2.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/NewQuickAction/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%2FNewQuickAction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florensiuswlt%2FNewQuickAction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florensiuswlt%2FNewQuickAction/lists"}