{"id":23129682,"url":"https://github.com/naxam/bottomnavigationviewex-android-binding","last_synced_at":"2025-08-17T06:32:37.982Z","repository":{"id":65414074,"uuid":"89435391","full_name":"NAXAM/bottomnavigationviewex-android-binding","owner":"NAXAM","description":"Xamarin.Android Binding Library for Ittianyu BottomNavigationViewEx","archived":false,"fork":false,"pushed_at":"2019-05-30T06:07:44.000Z","size":941,"stargazers_count":25,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-02T06:36:23.140Z","etag":null,"topics":["android","bindings","bottomnavigationview","bottomnavigationviewex","ittianyu-bottomnavigationviewex","viewpager","xamarin","xamarin-android","xamarin-android-binding"],"latest_commit_sha":null,"homepage":"https://github.com/ittianyu/BottomNavigationViewEx","language":"C#","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/NAXAM.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":"2017-04-26T03:50:04.000Z","updated_at":"2024-04-26T07:41:44.000Z","dependencies_parsed_at":"2023-01-23T10:55:07.730Z","dependency_job_id":null,"html_url":"https://github.com/NAXAM/bottomnavigationviewex-android-binding","commit_stats":null,"previous_names":["naxam/xand-bottomnavigationviewex"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NAXAM%2Fbottomnavigationviewex-android-binding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NAXAM%2Fbottomnavigationviewex-android-binding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NAXAM%2Fbottomnavigationviewex-android-binding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NAXAM%2Fbottomnavigationviewex-android-binding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NAXAM","download_url":"https://codeload.github.com/NAXAM/bottomnavigationviewex-android-binding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230098721,"owners_count":18172741,"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","bindings","bottomnavigationview","bottomnavigationviewex","ittianyu-bottomnavigationviewex","viewpager","xamarin","xamarin-android","xamarin-android-binding"],"created_at":"2024-12-17T10:10:06.710Z","updated_at":"2024-12-17T10:10:07.314Z","avatar_url":"https://github.com/NAXAM.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xamarin Android Binding Library\nXamarin.Android Binding Library for [Ittianyu BottomNavigationViewEx](https://github.com/ittianyu/BottomNavigationViewEx)\n\n```\nInstall-Package Naxam.Ittianyu.BottomNavExtension\n```\n\n## Features ##\n\n|Method|Description\n|---|---|\n|enableAnimation|Enable or disable click item animation(text scale and icon move animation in no item shifting mode). Default true.\n|enableItemShiftingMode|Enable the shifting mode for each item. It will has a shift animation for item if true. Otherwise the item text always be shown. Default true when item count \u003e 3.\n|enableShiftingMode|Enable the shifting mode for navigation. It will has a shift animation if true. Otherwise all items are the same width. Default true when item count \u003e 3.\n|getBottomNavigationItemView|Get private mButton in mMenuView at position\n|getBottomNavigationItemViews|Get private mButtons in mMenuView\n|getCurrentItem|Get the current checked item position.\n|getIconAt|Get icon at position.\n|getItemCount|Get item count.\n|getItemHeight|Get item height.\n|getLargeLabelAt|Get large label at position. Each item has tow label, one is large, another is small.\n|getSmallLabelAt|Get small label at position. Each item has tow label, one is large, another is small.\n|getMenuItemPosition|Get menu item position in menu. Return position if success, -1 otherwise.\n|getOnNavigationItemSelectedListener|Get OnNavigationItemSelectedListener.\n|setCurrentItem|Set the current checked item.\n|setIconSize|Set all item ImageView size.\n|setIconSizeAt|Set all item ImageView size which at position.\n|setIconVisibility|Change the visibility of icon.\n|setItemHeight|Set menu item height.\n|setLargeTextSize|Set all item large TextView size. Each item has tow label, one is large, another is small. Small one will be shown when item state is normal. Large one will be shown when item checked.\n|setSmallTextSize|Set all item small TextView size. Each item has tow label, one is large, another is small. Small one will be shown when item state is normal. Large one will be shown when item checked.\n|setTextSize|Set all item large and small TextView size.\n|setTextVisibility|Change the visibility of text.\n|setTypeface|set Typeface for all item TextView.\n|setupWithViewPager|This method will link the given ViewPager and this BottomNavigationViewEx together so that changes in one are automatically reflected in the other. This includes scroll state changes and clicks.\n\n\n## Example ##\n\n**Style**\n\n![](/read_me_images/normal.gif)\n\n![](/read_me_images/no_animation.gif)\n\n![](/read_me_images/no_shifting_mode.gif)\n\n![](/read_me_images/no_item_shifting_mode.gif)\n\n![](/read_me_images/no_text.gif)\n\n![](/read_me_images/no_icon.gif)\n\n![](/read_me_images/no_animation_shifting_mode.gif)\n\n![](/read_me_images/no_animation_item_shifting_mode.gif)\n\n![](/read_me_images/no_animation_shifting_mode_item_shifting_mode.gif)\n\n![](/read_me_images/no_shifting_mode_item_shifting_mode_text.gif)\n\n![](/read_me_images/no_animation_shifting_mode_item_shifting_mode_text.gif)\n\n![](/read_me_images/no_shifting_mode_item_shifting_mode_and_icon.gif)\n\n![](/read_me_images/no_item_shifting_mode_icon.gif)\n\n![](/read_me_images/no_animation_shifting_mode_item_shifting_mode_icon.gif)\n\n![](/read_me_images/with_padding.jpg)\n\n![](/read_me_images/center_icon_only.gif)\n\n![](/read_me_images/smaller_text.jpg)\n\n![](/read_me_images/bigger_icon.jpg)\n\n![](/read_me_images/custom_typeface.jpg)\n\n![](/read_me_images/icon_selector_1.jpg) ![](/read_me_images/icon_selector_2.jpg)\n\n**With ViewPager**\n\n![](/read_me_images/with_view_pager.gif)\n\n**Add ViewBadger**\n\n![](/read_me_images/view_badger.gif)\n\n## Adding to project ##\n\n### Sdk Version ###\n`compileSdkVersion` \u003e= 25\n\n## Getting started ##\n\nAdding a custom widget in `xml` :\n```xml\n\u003ccom.ittianyu.bottomnavigationviewex.BottomNavigationViewEx\n    android:id=\"@+id/bnve\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_alignParentBottom=\"true\"\n    android:background=\"@color/colorPrimary\"\n    app:itemIconTint=\"@color/selector_item_color\"\n    app:itemTextColor=\"@color/selector_item_color\"\n    app:menu=\"@menu/menu_navigation_with_view_pager\" /\u003e\n```\n\nBinding view in `Activity`:\n```java\nBottomNavigationViewEx bnve = FindViewById\u003cBottomNavigationViewEx\u003e(Resource.Id.bnve);\n```\n\n#### Disable all animations ####\n```java\nbnve.enableAnimation(false);\nbnve.enableShiftingMode(false);\nbnve.enableItemShiftingMode(false);\n```\n\n#### Custom text and icon size ####\n```java\nbnve.setIconSize(widthDp, heightDp);\nbnve.setTextSize(sp);\n```\n\n#### Binding with ViewPager ####\n```java\n// set adapter\nadapter = new VpAdapter(getSupportFragmentManager(), fragments);\nbind.vp.setAdapter(adapter);\n\n// binding with ViewPager\nbind.bnve.setupWithViewPager(bind.vp);\n```\n\n#### Other usage in BottomNavigationViewEx ####\nYou can see the demo.\n\n#### Usage in BottomNavigationView ####\nOther usage is the same as official `BottomNavigationView`.\nYou can [click here](https://developer.android.com/reference/android/support/design/widget/BottomNavigationView.html) for detail.\n\n## ProGuard ##\n\nIf you are using ProGuard you might need to add the following option:\n```\n-keep public class android.support.design.widget.BottomNavigationView { *; }\n-keep public class android.support.design.internal.BottomNavigationMenuView { *; }\n-keep public class android.support.design.internal.BottomNavigationPresenter { *; }\n-keep public class android.support.design.internal.BottomNavigationItemView { *; }\n```\n\n## References ##\n\nThe lib is based on `BottomNavigationView` in `Support Library 25 design`.\n\nI found it was inflexible when I try in demo. For example, I can't change the current checked item by code. So I write a class extends it to provide some useful method.\n\nYou no need to worry about stability. Because I minimise modifying by reflecting.\n\n## Thanks ##\n\n- [Ittianyu](https://github.com/ittianyu)\n\n## License ##\n\n\tMIT License\n\t\n\tCopyright (c) 2019 NAXAM\n\t\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\t\n\tThe above copyright notice and this permission notice shall be included in all\n\tcopies or substantial portions of the Software.\n\t\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\tSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaxam%2Fbottomnavigationviewex-android-binding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaxam%2Fbottomnavigationviewex-android-binding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaxam%2Fbottomnavigationviewex-android-binding/lists"}