{"id":13638952,"url":"https://github.com/romtsn/ArcNavigationView","last_synced_at":"2025-04-19T21:35:15.624Z","repository":{"id":141262478,"uuid":"78682274","full_name":"romtsn/ArcNavigationView","owner":"romtsn","description":"Another approach to create NavigationDrawer with Material concepts","archived":true,"fork":false,"pushed_at":"2020-06-28T11:06:29.000Z","size":7577,"stargazers_count":674,"open_issues_count":4,"forks_count":134,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-18T15:55:25.136Z","etag":null,"topics":["android","crop","material-design","navigationview"],"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/romtsn.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}},"created_at":"2017-01-11T21:38:56.000Z","updated_at":"2025-03-07T05:35:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"87c16178-b9fb-4824-9d88-c29bf9916afa","html_url":"https://github.com/romtsn/ArcNavigationView","commit_stats":null,"previous_names":["rom4ek/arcnavigationview"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romtsn%2FArcNavigationView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romtsn%2FArcNavigationView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romtsn%2FArcNavigationView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romtsn%2FArcNavigationView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romtsn","download_url":"https://codeload.github.com/romtsn/ArcNavigationView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249811162,"owners_count":21328752,"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","crop","material-design","navigationview"],"created_at":"2024-08-02T01:00:55.757Z","updated_at":"2025-04-19T21:35:15.258Z","avatar_url":"https://github.com/romtsn.png","language":"Java","readme":"# ArcNavigationView\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Arc%20NavigationView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5090)\n\n# WARNING\n\nThe repository is no longer maintained\n---\n\nNavigationView from android design support library with curved edge\n\n\u003cimg src=\"https://raw.githubusercontent.com/rom4ek/ArcNavigationView/master/media/crop_inside.png\" width=\"303\"\u003e \t\u003cimg src=\"https://raw.githubusercontent.com/rom4ek/ArcNavigationView/master/media/crop_outside.png\" width=\"303\"\u003e\n\n# Usage\n\n```xml\n\u003candroid.support.v4.widget.DrawerLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/drawer_layout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\"\n    tools:openDrawer=\"start\"\u003e\n    \n    ...\n    \n    \u003ccom.rom4ek.arcnavigationview.ArcNavigationView\n        android:id=\"@+id/nav_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:layout_gravity=\"start\"\n        android:background=\"@android:color/white\"\n        android:fitsSystemWindows=\"true\"\n        app:itemBackground=\"@android:color/white\"\n        app:headerLayout=\"@layout/nav_header_main\"\n        app:menu=\"@menu/activity_main_drawer\"\n        app:arc_cropDirection=\"cropOutside|cropInside\"\n        app:arc_width=\"96dp\"/\u003e\n\u003c/android.support.v4.widget.DrawerLayout\u003e\n```\n\n# Sample\n\n## Crop Outside\n\n```xml\n\u003candroid.support.v4.widget.DrawerLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/drawer_layout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\"\n    tools:openDrawer=\"start\"\u003e\n    \n    ...\n    \n    \u003ccom.rom4ek.arcnavigationview.ArcNavigationView\n        android:id=\"@+id/nav_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:layout_gravity=\"start\"\n        android:background=\"@android:color/white\"\n        android:fitsSystemWindows=\"true\"\n        app:itemBackground=\"@android:color/white\"\n        app:headerLayout=\"@layout/nav_header_main\"\n        app:menu=\"@menu/activity_main_drawer\"\n        app:arc_cropDirection=\"cropOutside\"\n        app:arc_width=\"96dp\"/\u003e\n\u003c/android.support.v4.widget.DrawerLayout\u003e\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/rom4ek/ArcNavigationView/master/media/crop_outside.png\" width=\"303\"\u003e\n\n\n## Crop Inside\n\n```xml\n\u003candroid.support.v4.widget.DrawerLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/drawer_layout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\"\n    tools:openDrawer=\"start\"\u003e\n    \n    ...\n    \n    \u003ccom.rom4ek.arcnavigationview.ArcNavigationView\n        android:id=\"@+id/nav_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"match_parent\"\n        android:layout_gravity=\"start\"\n        android:background=\"@android:color/white\"\n        android:fitsSystemWindows=\"true\"\n        app:itemBackground=\"@android:color/white\"\n        app:headerLayout=\"@layout/nav_header_main\"\n        app:menu=\"@menu/activity_main_drawer\"\n        app:arc_cropDirection=\"cropInside\"\n        app:arc_width=\"96dp\"/\u003e\n\u003c/android.support.v4.widget.DrawerLayout\u003e\n```\n\u003cimg src=\"https://raw.githubusercontent.com/rom4ek/ArcNavigationView/master/media/crop_inside.png\" width=\"303\"\u003e\n\n\n## Translucent status or navigation bar\n\nSimply add next lines to your ```styles-v21``` folder\n\n```xml\n\u003cstyle name=\"AppTheme\" parent=\"AppTheme.Base\"\u003e\n    \u003citem name=\"android:windowTranslucentNavigation\"\u003etrue\u003c/item\u003e\n    \u003citem name=\"android:windowTranslucentStatus\"\u003etrue\u003c/item\u003e\n\u003c/style\u003e\n```\n\n# Download\n[ ![Download](https://api.bintray.com/packages/rom4ek/maven/ArcNavigationView/images/download.svg) ](https://bintray.com/rom4ek/maven/ArcNavigationView/_latestVersion)\n\nIn your module's build.gradle file:\n\n```groovy\ndependencies {\n    implementation 'com.rom4ek:arcnavigationview:2.0.0'\n}\n```\n\n# Additionally\n\n```ArcNavigationView``` also supports end|right gravity mode for displaying it on the right side of the screen. To prevent child views from cutting I recommend to support right-to-left direction. For that you need:\n\n1. Don't forget to support right-to-left mode by adding ```android:supportsRtl=\"true\"``` inside your ```\u003capplication/\u003e``` tag in ```AndroidManifest.xml```.\n2. Add ```android:layoutDirection=\"rtl\"``` to ```ArcNavigationView```.\n\nYou can look how to implement this more closely in the [sample app](https://github.com/rom4ek/ArcNavigationView/tree/master/app)\n\n## TODO\n\n* Implement child views re-layout to prevent them from cutting, while using end|right gravity mode with left-to-right direction.\n\nAcknowledgements\n--------\n\nThanks to [Florent Champigny](https://github.com/florent37) for his beautiful project [ArcLayout](https://github.com/florent37/ArcLayout). I've created this project based on his code with some adjustments.\n\n\nLicense\n--------\n\n    Copyright 2017 Roman Zavarnitsyn.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["抽屉菜单"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromtsn%2FArcNavigationView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromtsn%2FArcNavigationView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromtsn%2FArcNavigationView/lists"}