{"id":21130334,"url":"https://github.com/aicaprio/CurtainView","last_synced_at":"2025-07-09T01:33:15.489Z","repository":{"id":24190859,"uuid":"27581947","full_name":"aicaprio/CurtainView","owner":"aicaprio","description":"Pull/Drawer/Layer View","archived":false,"fork":false,"pushed_at":"2019-01-23T01:12:21.000Z","size":21231,"stargazers_count":167,"open_issues_count":2,"forks_count":51,"subscribers_count":11,"default_branch":"master","last_synced_at":"2023-11-07T15:21:15.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"leecade/react-native-swiper","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aicaprio.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}},"created_at":"2014-12-05T08:27:05.000Z","updated_at":"2023-11-07T15:21:15.260Z","dependencies_parsed_at":"2022-07-10T10:32:37.813Z","dependency_job_id":null,"html_url":"https://github.com/aicaprio/CurtainView","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicaprio%2FCurtainView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicaprio%2FCurtainView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicaprio%2FCurtainView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aicaprio%2FCurtainView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aicaprio","download_url":"https://codeload.github.com/aicaprio/CurtainView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476370,"owners_count":17480215,"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-11-20T05:32:36.994Z","updated_at":"2024-11-20T05:32:45.361Z","avatar_url":"https://github.com/aicaprio.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"CurtainView\n===========\n\n[![license](http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat)](https://github.com/alibaba/atlas/blob/master/LICENSE)  \n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-CurtainView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1244)\n\nLike [DrawerLayout](https://github.com/aosp-mirror/platform_frameworks_support/blob/master/core-ui/src/main/java/android/support/v4/widget/DrawerLayout.java) , but can layer both horizontally and vertically .\n\n![image](https://github.com/aicaprio/CurtainView/blob/master/imgs/ezgif-5-4fc93a6397.gif)   \n\n![image](https://github.com/aicaprio/CurtainView/blob/master/imgs/ezgif-5-f6189eb790.gif)\n\n\nDownload\n--------\n\nAdd the library to your module's `build.gradle`:\n\n```groovy\ndependencies {\n  implementation 'org.aicaprio:curtainview:1.0.1'\n}\n```\n\nUsage\n--------\n\n#### Just few configs :\n\n```java\n\u003corg.aicaprio.curtainview.CurtainView\n    xmlns:cv=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_gravity=\"top\"\n    cv:curtainGravity=\"top\"\n    cv:curtainStatus=\"closed\"\n    cv:reboundMode=\"half\"\n    cv:scrollDuration=\"1000\"\u003e\n\n    \u003cImageView\n        android:id=\"@id/iv1\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"bottom\"\n        android:src=\"@drawable/ic_pull\"/\u003e\n\n\u003c/org.aicaprio.curtainview.CurtainView\u003e  \n ```\n \n #### Attributes Desc :\n    \n* `curtainGravity`  :  **visual gravity of CurtainView**. \n\n* `curtainStatus`  :  **whether the CurtainView is opend or closed.**\n\n* `reboundMode`  :  **how will it scrolls when fingers off CurtainView**\n\n* `scrollDuration`  :  **scrolling duration after fingers off CurtainView.**\n\n*** \n\nHere is an attribute need to be noticed : `fixedValue` ,\n\n**which defines the minimum width or height( depends on the gravity ) appears on the screen , the default value is one third of the CurtainView's width or height( depends on the gravity )**.\n\nUsually we set this attribute in your java codes , for example: \n\nWe'd like `iv1` completely showing when CurtainView is closed , so we just need to set the `fixedValue` to be `iv1's` height:\n\n```java       \nmCurtainView.post(\n    () -\u003e mCurtainView.setCurtainGravityAndFixedValue(null, mCurtainView.getHeight())\n);\n```\n\nThanks\n--------\n\u003e  [Android-PullToRefresh](https://github.com/chrisbanes/Android-PullToRefresh)\n\nLicense\n--------\n```\nCopyright 2014 aicaprio\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n   \n    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faicaprio%2FCurtainView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faicaprio%2FCurtainView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faicaprio%2FCurtainView/lists"}