{"id":18655201,"url":"https://github.com/ibrahimsn98/nicebottombar","last_synced_at":"2025-04-06T09:09:56.076Z","repository":{"id":35850189,"uuid":"175062102","full_name":"ibrahimsn98/NiceBottomBar","owner":"ibrahimsn98","description":"A lightweight Android material bottom navigation bar library","archived":false,"fork":false,"pushed_at":"2021-04-12T16:09:40.000Z","size":358,"stargazers_count":200,"open_issues_count":4,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T08:09:47.352Z","etag":null,"topics":["android","android-bottom-navigation","android-development","android-library","android-tabs","bottom-navigation"],"latest_commit_sha":null,"homepage":null,"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/ibrahimsn98.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}},"created_at":"2019-03-11T18:38:07.000Z","updated_at":"2025-03-04T11:15:10.000Z","dependencies_parsed_at":"2022-08-29T20:40:35.631Z","dependency_job_id":null,"html_url":"https://github.com/ibrahimsn98/NiceBottomBar","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimsn98%2FNiceBottomBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimsn98%2FNiceBottomBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimsn98%2FNiceBottomBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimsn98%2FNiceBottomBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibrahimsn98","download_url":"https://codeload.github.com/ibrahimsn98/NiceBottomBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457803,"owners_count":20941906,"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-bottom-navigation","android-development","android-library","android-tabs","bottom-navigation"],"created_at":"2024-11-07T07:18:05.206Z","updated_at":"2025-04-06T09:09:56.052Z","avatar_url":"https://github.com/ibrahimsn98.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# NiceBottomBar\n\nA lightweight Android material bottom navigation bar library\n\n[![](https://jitpack.io/v/ibrahimsn98/NiceBottomBar.svg)](https://jitpack.io/#ibrahimsn98/NiceBottomBar)\n[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)\n\n##  GIF\n\n\u003cimg src=\"https://github.com/ibrahimsn98/NiceBottomBar/blob/master/art/gif.gif?raw=true\"/\u003e\n\n## Usage\n\n-    Create menu.xml under your res/menu/ folder\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cmenu xmlns:android=\"http://schemas.android.com/apk/res/android\"\u003e\n\n\t\u003citem\n\t\tandroid:id=\"@+id/item0\"\n\t\tandroid:title=\"@string/servers\"\n\t\tandroid:icon=\"@drawable/ic_dns_black_24dp\" /\u003e\n\n\t\u003citem\n\t\tandroid:id=\"@+id/item1\"\n\t\tandroid:title=\"@string/search\"\n\t\tandroid:icon=\"@drawable/ic_search_black_24dp\" /\u003e\n\n\t\u003citem\n\t\tandroid:id=\"@+id/item2\"\n\t\tandroid:title=\"@string/billing\"\n\t\tandroid:icon=\"@drawable/ic_receipt_black_24dp\" /\u003e\n\n\t\u003citem\n\t\tandroid:id=\"@+id/item3\"\n\t\tandroid:title=\"@string/account\"\n\t\tandroid:icon=\"@drawable/ic_account_circle_black_24dp\" /\u003e\n    \n\u003c/menu\u003e\n```\n\n\n- Add view into your layout file\n```xml\n\u003cme.ibrahimsn.lib.NiceBottomBar\n\tandroid:id=\"@+id/bottomBar\"\n\tandroid:layout_width=\"match_parent\"\n\tandroid:layout_height=\"60dp\"\n\tapp:menu=\"@menu/bottom_menu\" /\u003e\n```\n\n\n- Use NiceBottomBar functions in your activity\n```kotlin\nbottomBar.setActiveItem(1)\nbottomBar.setBadge(2)\nbottomBar.removeBadge(2)\n\nbottomBar.onItemSelected = {\n    status.text = \"Item $it selected\"\n}\n\nbottomBar.onItemReselected = {\n    status.text = \"Item $it re-selected\"\n}\n\nbottomBar.onItemLongClick = {\n    status.text = \"Item $it long click\"\n}\n```\n\nOR\n\n```kotlin\nbottomBar.setOnItemSelectedListener(object: OnItemSelectedListener {\n    override fun onItemSelect(pos: Int) {\n        status.text = \"Item $pos selected\"\n    }\n})\n\nbottomBar.setOnItemReselectedListener(object: OnItemReselectedListener {\n    override fun onItemReselect(pos: Int) {\n        status.text = \"Item $pos re-selected\"\n    }\n})\n\nbottomBar.setOnItemLongClickListener(object: OnItemLongClickListener {\n    override fun onItemLongClick(pos: Int) {\n        status.text = \"Item $pos long click\"\n    }\n})\n```\n\n## Use in Java\n```\nNiceBottomBar bottomBar = (NiceBottomBar) findViewById(R.id.bottomBar);\n\nbottomBar.setOnItemSelectedListener(new OnItemSelectedListener() {\n     @Override\n     public void onItemSelect(int pos) {\n\t// Do action\n     }\n});\n\nbottomBar.setOnItemReselectedListener(new OnItemReselectedListener() {\n     @Override\n     public void onItemReselect(int pos) {\n\t// Do action\n     }\n});\n\nbottomBar.setOnItemLongClickListener(new OnItemLongClickListener() {\n     @Override\n     public void onItemLongClick(int pos) {\n\t// Do action\n     }\n});\n\n```\n\n## Customization\n\n```xml\n\u003cme.ibrahimsn.lib.NiceBottomBar\n\tandroid:id=\"@+id/bottomBar\"\n\tandroid:layout_width=\"match_parent\"\n\tandroid:layout_height=\"60dp\"\n\tapp:menu=\"@menu/bottom_menu\"\n\tapp:backgroundColor=\"\"\n\tapp:indicatorEnabled=\"\"\n\tapp:indicatorColor=\"\"\n\tapp:indicatorWidth=\"\"\n\tapp:indicatorGravity=\"\"\n\tapp:itemFontFamily=\"\"\n\tapp:textColor=\"\"\n\tapp:textColorActive=\"\"\n\tapp:textSize=\"\"\n\tapp:iconSize=\"\"\n\tapp:iconMargin=\"\"\n\tapp:activeItem=\"\"\n\tapp:badgeColor=\"\"\n\tapp:indicatorInterpolator=\"anticipateOvershoot\" /\u003e\n```\n\n\n## Setup\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n\ndependencies {\n        implementation 'com.github.ibrahimsn98:NiceBottomBar:2.2'\n}\n```\n\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2019 İbrahim Süren\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n\n\u003e Follow me on Twitter [@ibrahimsn98](https://twitter.com/ibrahimsn98)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimsn98%2Fnicebottombar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibrahimsn98%2Fnicebottombar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimsn98%2Fnicebottombar/lists"}