{"id":13642330,"url":"https://github.com/GitPhoenix/WheelDialogFragment","last_synced_at":"2025-04-20T16:31:39.707Z","repository":{"id":112692395,"uuid":"70313521","full_name":"GitPhoenix/WheelDialogFragment","owner":"GitPhoenix","description":"从窗口下方滑入的对话框，可用于时间选择，城市选择等等","archived":false,"fork":false,"pushed_at":"2017-08-29T07:44:27.000Z","size":381,"stargazers_count":32,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T13:38:09.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GitPhoenix.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-08T07:39:56.000Z","updated_at":"2021-11-10T02:24:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f06c57d-75f8-4b36-9a2e-f588a23c93b2","html_url":"https://github.com/GitPhoenix/WheelDialogFragment","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/GitPhoenix%2FWheelDialogFragment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitPhoenix%2FWheelDialogFragment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitPhoenix%2FWheelDialogFragment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitPhoenix%2FWheelDialogFragment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitPhoenix","download_url":"https://codeload.github.com/GitPhoenix/WheelDialogFragment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249926103,"owners_count":21346482,"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-02T01:01:30.049Z","updated_at":"2025-04-20T16:31:39.674Z","avatar_url":"https://github.com/GitPhoenix.png","language":"Java","readme":"# WheelDialogFragment 从窗口下方滑入的对话框，可用于时间选择，城市选择等等\n###### 效果图：\n![image](https://github.com/GitPhoenix/WheelDialogFragment/blob/master/screen/wheelDialog.gif)\n\n##### 具体应用：在Activity或者Fragment中\n```\nBundle bundle = new Bundle();\nbundle.putBoolean(WheelDialogFragment.DIALOG_BACK, false);\nbundle.putBoolean(WheelDialogFragment.DIALOG_CANCELABLE, false);\nbundle.putBoolean(WheelDialogFragment.DIALOG_CANCELABLE_TOUCH_OUT_SIDE, false);\nbundle.putString(WheelDialogFragment.DIALOG_LEFT, \"取消\");\nbundle.putString(WheelDialogFragment.DIALOG_RIGHT, \"确定\");\nbundle.putStringArray(WheelDialogFragment.DIALOG_WHEEL, ResUtil.getStringArray(R.array.main_home_menu));\n\nWheelDialogFragment dialogFragment = WheelDialogFragment.newInstance(WheelDialogFragment.class, bundle);\ndialogFragment.setWheelDialogListener(new WheelDialogFragment.OnWheelDialogListener() {\n    @Override\n    public void onClickLeft(DialogFragment dialog, String value) {\n        dialog.dismiss();\n    }\n\n    @Override\n    public void onClickRight(DialogFragment dialog, String value) {\n        dialog.dismiss();\n        Toast.makeText(getApplicationContext(), value, Toast.LENGTH_SHORT).show();\n    }\n\n    @Override\n    public void onValueChanged(DialogFragment dialog, String value) {\n        Log.i(\"\", \"current value: \" + value);\n    }\n});\n\ndialogFragment.show(getSupportFragmentManager(), \"\");\n```\n","funding_links":[],"categories":["对话框"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGitPhoenix%2FWheelDialogFragment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGitPhoenix%2FWheelDialogFragment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGitPhoenix%2FWheelDialogFragment/lists"}