{"id":13645039,"url":"https://github.com/yingLanNull/HideKeyboard","last_synced_at":"2025-04-21T11:32:38.336Z","repository":{"id":112515524,"uuid":"69326900","full_name":"yingLanNull/HideKeyboard","owner":"yingLanNull","description":"仿iOS输入法点击输入框以外区域 自动隐藏软键盘轻量级库 ， Imitation iOS automatic hidden soft keyboard","archived":false,"fork":false,"pushed_at":"2018-08-28T03:23:42.000Z","size":3163,"stargazers_count":334,"open_issues_count":2,"forks_count":58,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-09T17:42:53.993Z","etag":null,"topics":["android","hidekeyboard","keyboard"],"latest_commit_sha":null,"homepage":"","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/yingLanNull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-27T06:37:23.000Z","updated_at":"2024-09-30T06:04:22.000Z","dependencies_parsed_at":"2023-05-15T16:45:38.821Z","dependency_job_id":null,"html_url":"https://github.com/yingLanNull/HideKeyboard","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/yingLanNull%2FHideKeyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingLanNull%2FHideKeyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingLanNull%2FHideKeyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingLanNull%2FHideKeyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingLanNull","download_url":"https://codeload.github.com/yingLanNull/HideKeyboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250048024,"owners_count":21366162,"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":["android","hidekeyboard","keyboard"],"created_at":"2024-08-02T01:02:24.136Z","updated_at":"2025-04-21T11:32:38.277Z","avatar_url":"https://github.com/yingLanNull.png","language":"Java","readme":"# Hidekeyboard\n## Abstract\nModelled on the iOS implementation click on the input box area, soft keyboard hide, a super easy to use library of lightweight.\n\n## Chinese Documents\n[点击查看中文文档](https://github.com/yingLanNull/HideKeyboard/blob/master/READEME_CN.md)\n\n## Gif\n![1](https://github.com/yingLanNull/HideKeyboard/blob/master/show/show.gif)\n\n## Demo\n[Download Demo](https://github.com/yingLanNull/HideKeyboard/blob/master/show/demo-debug.apk)\n\n## Usage\n### Step 1\n#### Gradle\n```\ndependencies {\n    compile 'com.yinglan.keyboard:hidekeyboard:1.2.0'\n}\n```\n\n### Step 2\n\n#### In Java Code\n\n##### The main method\n\n```\n\t\tHideUtil.init(context);\n```\nOR\t\n```\n\t\tHideUtil.init(context,viewgroup);\n```\nOR\t\n```\n  //Forced hidden keyboard\n\t\tHideUtil.hideSoftKeyboard(activity);\n```\nOR\t\n```\n  //Forced hidden keyboard\n\t\tHideUtil.hideSoftKeyboard(view);\n```\nOR\t\n```\n  //Forced hidden keyboard\n\t\tHideUtil.hideDialogSoftKeyboard(dialog);\n```\n##### USE\n```\n{\n\t @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_main);\n         HideUtil.init(this);\n     }\n}\n\n```\nOR\n```\n{\n\t @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_main);\n         ViewGroup viewGroup = (ViewGroup) findViewById(R.id.activity_main);\n         HideUtil.init(this,viewGroup);\n     }\n}\n\n```\nOR\n```\nview.findViewById(R.id.view).setOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View view) {\n                HideUtil.hideSoftKeyboard(getActivity());\n            }\n        });\n```\n## FAQ\n\n```\n\tThe library implementation uses the top layer layout android.R.id.content the OnTouchListener listener, rewrite the monitor to be noted.\n```\n\n## License\nThe work done has been licensed under Apache License 2.0. The license file can be found\n[here](LICENSE). You can find out more about the license at:\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\n","funding_links":[],"categories":["软键盘"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FyingLanNull%2FHideKeyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FyingLanNull%2FHideKeyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FyingLanNull%2FHideKeyboard/lists"}