{"id":13396039,"url":"https://github.com/zhaozhentao/InboxLayout","last_synced_at":"2025-03-13T22:31:38.097Z","repository":{"id":26461079,"uuid":"29912476","full_name":"zhaozhentao/InboxLayout","owner":"zhaozhentao","description":"模仿google inbox效果","archived":false,"fork":false,"pushed_at":"2015-03-05T10:03:40.000Z","size":9154,"stargazers_count":700,"open_issues_count":7,"forks_count":148,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-07-31T18:16:19.277Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhaozhentao.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}},"created_at":"2015-01-27T12:06:47.000Z","updated_at":"2024-05-29T18:23:32.000Z","dependencies_parsed_at":"2022-08-29T14:31:55.286Z","dependency_job_id":null,"html_url":"https://github.com/zhaozhentao/InboxLayout","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/zhaozhentao%2FInboxLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozhentao%2FInboxLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozhentao%2FInboxLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozhentao%2FInboxLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaozhentao","download_url":"https://codeload.github.com/zhaozhentao/InboxLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493790,"owners_count":20299720,"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-07-30T18:00:38.187Z","updated_at":"2025-03-13T22:31:37.503Z","avatar_url":"https://github.com/zhaozhentao.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","手势操作","Index","Java"],"sub_categories":[],"readme":"# InboxLayout\n模仿Google Inbox邮箱的上下拉返回效果\n\n让你的app加入真正方便的手势操作\n\n使用InboxLayout前最好来这里看看有没有更新~~~\n\n\n# ScreenShot\n![image](https://raw.githubusercontent.com/zhaozhentao/InboxLayout/master/screenshot/pic.gif)\n\n![image](https://github.com/zhaozhentao/InboxLayout/blob/master/screenshot/pic1.gif)\n\n# Usage\n###step 1\n实现类似的布局, 具体可参考demo\n\n    \u003cFrameLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n        \n        \u003ccom.zzt.inbox.widget.InboxScrollView\n            android:scrollbars=\"none\"\n            android:id=\"@+id/scroll\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\u003e\n            \u003cLinearLayout\n                android:orientation=\"vertical\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\u003e\n                \u003c!--在这里布局主界面要显示的内容--\u003e\n            \u003c/LinearLayout\u003e\n        \u003c/com.zzt.inbox.widget.InboxScrollView\u003e\n        \n        \u003ccom.zzt.inbox.widget.InboxLayoutListView\n            android:id=\"@+id/inboxlayout\"\n            android:visibility=\"invisible\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\u003e\n        \u003c/com.zzt.inbox.widget.InboxLayoutListView\u003e\n    \u003c/FrameLayout\u003e\n\n###step 2\n\n    final InboxScrollView inboxScrollView = (InboxScrollView)findViewById(R.id.scroll);\n    inboxLayout = (InboxLayout)findViewById(R.id.inboxlayout);             \n    inboxLayout.seBackgroundScrollView(inboxScrollView); //将inboxScrollView 与 inboxlayout绑定,由inboxlayout带动inboxScrollView滚动\n    \n    \n###step 3\n \n    final LinearLayout dingdan = (LinearLayout)findViewById(R.id.ding_dan);\n    dingdan.setOnClickListener(new View.OnClickListener() {\n      @Override\n      public void onClick(View v) {\n        inboxLayout.openWithAnim(dingdan);//给inboxLayout传入open时需要隐藏的view\n      }\n    });\n\n# Last\nInboxLayout目前支持底部为scrollview 顶部为listview和scrollview的情况,适用于大部分场景\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaozhentao%2FInboxLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaozhentao%2FInboxLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaozhentao%2FInboxLayout/lists"}