{"id":3511,"url":"https://github.com/andremion/Floating-Navigation-View","last_synced_at":"2025-08-03T20:32:31.356Z","repository":{"id":129053163,"uuid":"65471950","full_name":"andremion/Floating-Navigation-View","owner":"andremion","description":"A simple Floating Action Button that shows an anchored Navigation View","archived":false,"fork":false,"pushed_at":"2022-08-30T07:07:42.000Z","size":308,"stargazers_count":1291,"open_issues_count":3,"forks_count":188,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-12-01T09:00:28.357Z","etag":null,"topics":["android","button","fab","floating-action-button","navigation","navigation-view"],"latest_commit_sha":null,"homepage":null,"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/andremion.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,"roadmap":null,"authors":null}},"created_at":"2016-08-11T13:34:14.000Z","updated_at":"2024-11-13T10:12:01.000Z","dependencies_parsed_at":"2024-01-02T21:20:42.345Z","dependency_job_id":"943d19f9-8ab8-4a1a-a571-f3afbf11b54b","html_url":"https://github.com/andremion/Floating-Navigation-View","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andremion%2FFloating-Navigation-View","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andremion%2FFloating-Navigation-View/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andremion%2FFloating-Navigation-View/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andremion%2FFloating-Navigation-View/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andremion","download_url":"https://codeload.github.com/andremion/Floating-Navigation-View/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228567009,"owners_count":17937983,"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","button","fab","floating-action-button","navigation","navigation-view"],"created_at":"2024-01-05T20:16:43.601Z","updated_at":"2024-12-07T05:30:33.438Z","avatar_url":"https://github.com/andremion.png","language":"Java","funding_links":[],"categories":["Library","Libraries","FAB"],"sub_categories":["GUI"],"readme":"[![License Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=true)](http://www.apache.org/licenses/LICENSE-2.0)\n![minSdkVersion 19](https://img.shields.io/badge/minSdkVersion-19-red.svg?style=true)\n![compileSdkVersion 30](https://img.shields.io/badge/compileSdkVersion-30-yellow.svg?style=true)\n[![maven-central](https://img.shields.io/maven-central/v/com.github.andremion/floatingnavigationview.svg)](https://search.maven.org/#artifactdetails%7Ccom.github.andremion%7Cfloatingnavigationview%7C1.3.0%7Caar)\n\n[![Android Arsenal Floating-Navigation-View](https://img.shields.io/badge/Android%20Arsenal-Floating--Navigation--View-green.svg?style=true)](https://android-arsenal.com/details/1/4134)\n[![MaterialUp Floating-Navigation-View](https://img.shields.io/badge/MaterialUp-Floating--Navigation--View-blue.svg?style=true)](https://www.uplabs.com/posts/floating-navigation-view)\n[![Android Weekly #224](https://img.shields.io/badge/Android%20Weekly-%23224-blue.svg?style=true)](http://androidweekly.net/issues/issue-224)\n[![Android Sweets #38](https://img.shields.io/badge/Android%20Sweets-%2338-ff69b4.svg?style=true)](https://androidsweets.ongoodbits.com/2016/09/29/issue-38)\n[![Android UI OpenSource](https://img.shields.io/badge/Android%20UI%20OpenSource-2016-yellow.svg?style=true)](https://kmshack.github.io/AndroidUICollection/page2/)\n[![Awesome Android](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/JStumpp/awesome-android#navigation)\n\n# Floating Navigation View\n\nA simple Floating Action Button that shows an anchored Navigation View and was inspired by [Menu Material Fixed](http://www.uplabs.com/posts/menu-material-fixed) created by [Tommaso Poletti](http://www.uplabs.com/tomma5o)\n\n![Sample](https://raw.githubusercontent.com/andremion/Floating-Navigation-View/master/art/sample.gif)\n\n## Installation\n\nInclude the library in your `build.gradle`\n\n```groovy\ndependencies{\n    compile 'com.github.andremion:floatingnavigationview:1.3.0'\n}\n```\n\nor in your `pom.xml` if you are using Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.andremion\u003c/groupId\u003e\n  \u003cartifactId\u003efloatingnavigationview\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.0\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n## Usage example\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003candroidx.coordinatorlayout.widget.CoordinatorLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n    \u003ccom.google.android.material.appbar.AppBarLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:fitsSystemWindows=\"true\"\u003e\n\n    ...\n\n    \u003ccom.andremion.floatingnavigationview.FloatingNavigationView\n        android:id=\"@+id/floating_navigation_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"@dimen/fab_margin\"\n        android:theme=\"@style/AppTheme.AppBarOverlay\"\n        app:layout_anchor=\"@id/toolbar\"\n        app:layout_anchorGravity=\"bottom|end\"\n        app:drawMenuBelowFab=\"true\"\n        app:headerLayout=\"@layout/navigation_view_header\"\n        app:menu=\"@menu/menu_navigation_view\" /\u003e\n\n\u003c/androidx.coordinatorlayout.widget.CoordinatorLayout\u003e\n```\n\n### Custom attributes\n\n- The menu resource to inflate and populate items from\n`\u003cattr name=\"menu\" format=\"reference\" /\u003e`\n    \n- Layout resource to inflate as the header\n`\u003cattr name=\"headerLayout\" format=\"reference\" /\u003e`\n\n- Item text customizations\n`\u003cattr name=\"itemIconTint\" format=\"color\"/\u003e`\n`\u003cattr name=\"itemTextColor\" format=\"color\"/\u003e`\n`\u003cattr name=\"itemBackground\" format=\"reference\"/\u003e`\n`\u003cattr name=\"itemTextAppearance\" format=\"reference\"/\u003e`\n\n- If menu must be drawn below the FAB\n`\u003cattr name=\"drawMenuBelowFab\" format=\"boolean\" /\u003e`\n\nThe recommended way to customize the background color is by using the `app:backgroundTint` attribute in `xml` or `setBackgroundTintList` in `Java`\n\n```xml\n\u003ccom.andremion.floatingnavigationview.FloatingNavigationView\n        android:id=\"@+id/floating_navigation_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:backgroundTint=\"#009688\" /\u003e\n```\n\n```java\nmNavigationView.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#009688\")));\n```\n\nYou can also set the button icon color according to the theme by setting the `android:tint` to a theme attribute:\n\n```xml\n\u003ccom.andremion.floatingnavigationview.FloatingNavigationView\n        android:id=\"@+id/floating_navigation_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:tint=\"?android:textColorPrimary\" /\u003e\n```\n\nSee more at the [sample](https://github.com/andremion/Floating-Navigation-View/tree/master/sample)\n\n## Libraries and tools used in the project\n\n* [Design Support Library](http://developer.android.com/intl/pt-br/tools/support-library/features.html#design)\nThe Design package provides APIs to support adding material design components and patterns to your apps.\n* [VectAlign](https://github.com/bonnyfone/vectalign)\nVectAlign is a developer's tool which aligns two VectorDrawable \"pathData\" strings (or SVG images) in order to allow morphing animations between them using an AnimatedVectorDrawable.\n\n## License\n\n    Copyright 2019 André Mion\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandremion%2FFloating-Navigation-View","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandremion%2FFloating-Navigation-View","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandremion%2FFloating-Navigation-View/lists"}