{"id":13396381,"url":"https://github.com/cdflynn/crossview","last_synced_at":"2025-03-13T23:30:57.720Z","repository":{"id":31430667,"uuid":"34994223","full_name":"cdflynn/crossview","owner":"cdflynn","description":"A Toggling Add/Remove button","archived":false,"fork":false,"pushed_at":"2016-02-27T03:37:59.000Z","size":247,"stargazers_count":317,"open_issues_count":1,"forks_count":46,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-07-31T18:17:11.080Z","etag":null,"topics":["android","android-library","android-ui"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdflynn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-03T17:24:06.000Z","updated_at":"2024-03-06T15:36:45.000Z","dependencies_parsed_at":"2022-09-05T19:00:51.258Z","dependency_job_id":null,"html_url":"https://github.com/cdflynn/crossview","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdflynn%2Fcrossview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdflynn%2Fcrossview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdflynn%2Fcrossview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdflynn%2Fcrossview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdflynn","download_url":"https://codeload.github.com/cdflynn/crossview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221421534,"owners_count":16817821,"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","android-library","android-ui"],"created_at":"2024-07-30T18:00:48.861Z","updated_at":"2024-10-25T11:30:24.409Z","avatar_url":"https://github.com/cdflynn.png","language":"Java","readme":"# Cross View\n\n[![Release](https://img.shields.io/github/release/cdflynn/crossview.svg?label=JitPack)](https://jitpack.io/#cdflynn/crossview)\n\n\n![Sample App](https://github.com/cdflynn/crossview/blob/master/sample/images/cross_btn_2.gif?raw=true)\n\n![Action Bar](https://github.com/cdflynn/crossview/blob/master/sample/images/cross_btn.gif?raw=true)\n\nAdd a CrossView to your layout\n```xml\n    \u003ccdflynn.android.library.crossview.CrossView\n        android:id=\"@+id/sample_cross_view\"\n        android:layout_width=\"50dp\"\n        android:layout_height=\"50dp\"\n        android:padding=\"14dp\"\n        android:background=\"@drawable/cross_view_selector\"\n        app:lineColor=\"@android:color/black\"/\u003e\n```\n\nNote that you can define the color with `lineColor`\n\ntoggle in code:\n```java\n    private final View.OnClickListener mCrossViewClickListener = new View.OnClickListener() {\n        @Override\n        public void onClick(View v) {\n            mCrossView.toggle();\n        }\n    };\n```\n\nYou can also set a state directly:\n```java\nmCrossView.plus();\n```\n```java\nmCrossView.cross();\n```\n\nOptionally supply an animation duration in milliseconds\n\n```java\nmCrossView.cross(0l);\n```\n\n```java\nmCrossView.toggle(150l);\n```\n\n```java\nmCrossView.plus(200l);\n```\n\n## Install\n\nYou can install using gradle:\n\n```gradle\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\n\ndependencies {\n    compile 'com.github.cdflynn:crossview:v1.0.1'\n}\n```\n","funding_links":[],"categories":["Index `(light-weight pages)`","Index"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdflynn%2Fcrossview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdflynn%2Fcrossview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdflynn%2Fcrossview/lists"}