{"id":17704938,"url":"https://github.com/clistery/bottomnavigationex","last_synced_at":"2025-10-29T23:31:43.022Z","repository":{"id":38178766,"uuid":"401622656","full_name":"CListery/BottomNavigationEx","owner":"CListery","description":"An android lib for enhancing BottomNavigationView.(Extended from BottomNavigationViewEx)","archived":false,"fork":false,"pushed_at":"2024-08-14T07:04:36.000Z","size":2803,"stargazers_count":56,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T21:12:22.165Z","etag":null,"topics":["android","bottomnavigationbar","bottomnavigationview","kotlin"],"latest_commit_sha":null,"homepage":"https://clistery.github.io/BottomNavigationEx/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CListery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-31T08:06:34.000Z","updated_at":"2025-02-10T08:12:30.000Z","dependencies_parsed_at":"2024-08-01T10:23:19.831Z","dependency_job_id":null,"html_url":"https://github.com/CListery/BottomNavigationEx","commit_stats":{"total_commits":104,"total_committers":7,"mean_commits":"14.857142857142858","dds":0.3846153846153846,"last_synced_commit":"1207ebbbc300adc260c84c7d4f4b028628df0a01"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CListery%2FBottomNavigationEx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CListery%2FBottomNavigationEx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CListery%2FBottomNavigationEx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CListery%2FBottomNavigationEx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CListery","download_url":"https://codeload.github.com/CListery/BottomNavigationEx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238909492,"owners_count":19550845,"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","bottomnavigationbar","bottomnavigationview","kotlin"],"created_at":"2024-10-24T22:05:33.106Z","updated_at":"2025-10-29T23:31:43.010Z","avatar_url":"https://github.com/CListery.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BottomNavigationEx\r\n\r\n[中文文档](./doc/README.zh-cn.md)\r\n\r\n[![version](https://jitpack.io/v/CListery/BottomNavigationEx.svg)](https://jitpack.io/#CListery/BottomNavigationEx) ![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg) ![api 14+](https://img.shields.io/badge/API-14%2B-green.svg)\r\n\r\n\u003e An android library that enhances BottomNavigationView. (Continuation of [~~BottomNavigationViewEx(obsolete)~~](https://github.com/ittianyu/BottomNavigationViewEx))\r\n\r\n## [APIs](./doc/API.md)\r\n\r\n## [Example](./doc/example.md)\r\n\r\n## Dependencies\r\n\r\n### Gradle\r\n\r\n1. Ex library\r\n\r\n    ```groovy\r\n    implementation 'io.github.clistery:bottomnavigationex-ex:x.x.x'\r\n    ```\r\n\r\n2. Version base on `material`\r\n\r\n    - `material`1.10.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-110x:x.x.x'\r\n        ```\r\n\r\n    - `material`1.9.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-19x:x.x.x'\r\n        ```\r\n\r\n    - `material`1.8.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-18x:x.x.x'\r\n        ```\r\n\r\n    - `material`1.7.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-17x:x.x.x'\r\n        ```\r\n\r\n    - `material`1.6.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-16x:x.x.x'\r\n        ```\r\n\r\n    - `material`1.5.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-15x:x.x.x'\r\n        ```\r\n\r\n    - `material`1.4.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-14x:x.x.x'\r\n        ```\r\n\r\n    - `material`1.3.x\r\n\r\n        ```groovy\r\n        implementation 'io.github.clistery:bottomnavigationex-13x:x.x.x'\r\n        ```\r\n\r\n3. Add the following configuration in `gradle.properties`\r\n\r\n   ```properties\r\n   android.useAndroidX=true\r\n   android.enableJetifier=true\r\n   ```\r\n\r\n### USE\r\n\r\n- Adding a custom widget in `xml`\r\n\r\n    ```xml\r\n    \u003ccom.yh.bottomnavigationex.BottomNavigationViewEx\r\n        android:id=\"@+id/bnve\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_alignParentBottom=\"true\"\r\n        android:background=\"@color/colorPrimary\"\r\n        app:itemIconTint=\"@color/selector_item_color\"\r\n        app:itemTextColor=\"@color/selector_item_color\"\r\n        app:menu=\"@menu/menu_navigation_with_view_pager\" /\u003e\r\n    ```\r\n\r\n- Binding view in `Activity`\r\n\r\n    ```java\r\n    BottomNavigationViewEx bnve = (BottomNavigationViewEx) findViewById(R.id.bnve);\r\n    ```\r\n\r\n- Disable all animations\r\n\r\n    ```java\r\n    bnve.enableAnimation(false);\r\n    bnve.enableLabelVisibility(false);\r\n    bnve.enableItemHorizontalTranslation(false);\r\n    ```\r\n\r\n- Custom text and icon size\r\n\r\n    ```java\r\n    bnve.setIconSize(widthDp, heightDp);\r\n    bnve.setTextSize(sp);\r\n    ```\r\n\r\n- Binding with ViewPager\r\n\r\n    ```java\r\n    // set adapter\r\n    adapter = new VpAdapter(getSupportFragmentManager(), fragments);\r\n    bind.vp.setAdapter(adapter);\r\n\r\n    // binding with ViewPager\r\n    bind.bnve.setupWithViewPager(bind.vp);\r\n    ```\r\n\r\n- Binding with ViewPager2\r\n\r\n    ```java\r\n    // set adapter\r\n    adapter = new Vp2Adapter(getSupportFragmentManager());\r\n    bind.vp.setAdapter(adapter);\r\n\r\n    // binding with ViewPager\r\n    bind.bnve.setupWithViewPager2(bind.vp);\r\n    ```\r\n\r\n- Add badge view\r\n\r\n    ```java\r\n    BadgeDrawable bd = bind.bnve.getRealView().getOrCreateBadge(R.id.i_friends);\r\n    bd.setNumber(1);\r\n    bd.setHorizontalOffset(12);\r\n    bd.setVerticalOffset(2);\r\n    ```\r\n\r\n- Dynamic Menu Item\r\n\r\n    ```kotlin\r\n    val menuCount: Int = max((Math.random() * 30).toInt(), 1)\r\n    \r\n    bnve.configDynamic(menuCount) { menu, index -\u003e\r\n        menu.add(0, index, index, \"menu${index}\")\r\n            .setIcon(R.drawable.ic_favorite_black_24dp)\r\n    }\r\n    ```\r\n\r\n- About support Android 15 Edge-To-Edge effect\r\n  - [Display content edge-to-edge in views](https://developer.android.com/develop/ui/views/layout/edge-to-edge)\r\n  - [Handle edge-to-edge enforcements in Android 15](https://developer.android.com/codelabs/edge-to-edge)\r\n\r\n- For the usage of the original BottomNavigationView obtained through getRealView, please refer to [Official Documentation](https://developer.android.com/reference/com/google/android/material/bottomnavigation/BottomNavigationView)\r\n\r\n- For more usage, please refer to demo.\r\n\r\n## License\r\n\r\n```license\r\nMIT License\r\n\r\nCopyright (c) 2022 clistery\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n```\r\n\r\n\u003cpicture\u003e\r\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=clistery/bottomnavigationex\u0026type=Date\u0026theme=dark\" /\u003e\r\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=clistery/bottomnavigationex\u0026type=Date\" /\u003e\r\n  \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=clistery/bottomnavigationex\u0026type=Date\" /\u003e\r\n\u003c/picture\u003e\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclistery%2Fbottomnavigationex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclistery%2Fbottomnavigationex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclistery%2Fbottomnavigationex/lists"}