{"id":18494106,"url":"https://github.com/steelkiwi/separateshapesview","last_synced_at":"2025-08-19T03:12:24.472Z","repository":{"id":72807320,"uuid":"97202647","full_name":"steelkiwi/SeparateShapesView","owner":"steelkiwi","description":"Simple custom ViewGroup with two shapes inside and simple scale animation","archived":false,"fork":false,"pushed_at":"2017-07-14T08:04:56.000Z","size":882,"stargazers_count":245,"open_issues_count":0,"forks_count":38,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-07T13:51:15.408Z","etag":null,"topics":["android","animation","button","custom-viewgroup","java","library"],"latest_commit_sha":null,"homepage":"http://steelkiwi.com/","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/steelkiwi.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}},"created_at":"2017-07-14T06:49:36.000Z","updated_at":"2024-11-13T10:15:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d6e0793-05ce-46f1-8be4-48d66a936a2f","html_url":"https://github.com/steelkiwi/SeparateShapesView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steelkiwi/SeparateShapesView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelkiwi%2FSeparateShapesView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelkiwi%2FSeparateShapesView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelkiwi%2FSeparateShapesView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelkiwi%2FSeparateShapesView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steelkiwi","download_url":"https://codeload.github.com/steelkiwi/SeparateShapesView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelkiwi%2FSeparateShapesView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271093205,"owners_count":24697958,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","animation","button","custom-viewgroup","java","library"],"created_at":"2024-11-06T13:17:59.560Z","updated_at":"2025-08-19T03:12:24.444Z","avatar_url":"https://github.com/steelkiwi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SeparateShapesView\n\n[![Made in SteelKiwi](https://github.com/steelkiwi/SeparateShapesView/blob/master/assets/made_in_steelkiwi.png)](http://steelkiwi.com/blog/)\n[ ![Download](https://api.bintray.com/packages/soulyaroslav/maven/separate-shapes-view/images/download.svg) ](https://bintray.com/soulyaroslav/maven/separate-shapes-view/_latestVersion)\n\n# Description\n\nSimple custom ViewGroup with two shapes inside and simple scale animation\n\n# View\n\n![Animation](https://github.com/steelkiwi/SeparateShapesView/blob/master/assets/shape_animation_center.gif)\n![Animation](https://github.com/steelkiwi/SeparateShapesView/blob/master/assets/shape_animation_left.gif)\n\n# Download\n\nFor project API 21+.\n\n## Gradle\n\n```gradle\ncompile 'com.steelkiwi:separate-shapes-view:1.1.0'\n```\n\n# Usage\n\nFirst of all, need add SeparateShapesView to your xml layout\n\n```xml\n\u003ccom.steelkiwi.library.SeparateShapesView\n    android:id=\"@+id/view\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"@dimen/view_height\"\n    android:layout_alignParentBottom=\"true\"\n    android:layout_alignParentLeft=\"true\" or android:layout_centerInParent=\"true\" // it will animate view left or center position\n    android:layout_marginRight=\"@dimen/margin_40\"\n    android:layout_marginLeft=\"@dimen/margin_40\"\n    android:layout_marginBottom=\"@dimen/margin_20\"\n    app:ssv_all_text_caps=\"true\"\n    app:ssv_done_drawable=\"@drawable/done\"\n    app:ssv_left_shape_drawable=\"@drawable/left_rounded_corner_drawable\"\n    app:ssv_right_shape_drawable=\"@drawable/right_rounded_corner_drawable\"\n    app:ssv_left_shape_text=\"@string/left_title\"\n    app:ssv_right_shape_text=\"@string/right_title\"\n    app:ssv_text_color=\"@android:color/white\"\n    app:ssv_text_size=\"14sp\"\n    app:ssv_single_shape=\"false\"\n    app:ssv_center_shape_text=\"@string/center_title\"/\u003e\n```\n\nYou can customize view, through this attributes\n\n* app:ssv_all_text_caps - set all text cups\n* app:ssv_done_drawable - set icon when view is finish animate\n* app:ssv_left_shape_drawable - left shape drawable\n* app:ssv_right_shape_drawable - right shape drawable\n* app:ssv_left_shape_text - left shape title\n* app:ssv_right_shape_text -  right shape title\n* app:ssv_text_color - shape text color\n* app:ssv_text_size - shape text size\n* app:ssv_single_shape - set flag to not divide shapes\n* app:ssv_center_shape_text -  shape center text\n\nInside your client code need to implement listener SeparateShapesView.OnButtonClickListener to handle view click state.\nOnButtonClickListener methods:\n\n* boolean onLeftButtonClick()\n* boolean onRightButtonClick()\n* boolean onMiddleButtonClick() // will call when use ssv_single_shape and ssv_center_shape_text is not null\n\nIf any of the methods will returns true, view will animate. Otherwise nothing happens\n\n# License\n\n```\nCopyright © 2017 SteelKiwi, http://steelkiwi.com\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelkiwi%2Fseparateshapesview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteelkiwi%2Fseparateshapesview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelkiwi%2Fseparateshapesview/lists"}