在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):RoyWallace/BottomNavigationBar开源软件地址(OpenSource Url):https://github.com/RoyWallace/BottomNavigationBar开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):#开发过程中遇到问题可以加群讨论,Android讨论群:295456349 BottomNavigationBarMaterial design 更新的BottomNavigationbar的开源实现 目前版本最新版本是v0.3,还在努力完善中,有兴趣的朋友可以关注。如果发现问题请写在issue,我会定期查看和修复。 ###version v0.1 基础版本 v0.2 支持修改tab selected 情况下的width scale 属性 v0.3 支持设置tab text 在unselected情况下是否隐藏 ###Demo修改 有童鞋反应说要如何实现像新规范里面NavigationBar透明的样式,所以这里把项目的Demo修改一下,实现Navigationbar透明并且覆盖在BottomNavigationBar上面。(目前这种实现方式还不够完善,会导致statusBar也不占位的问题。如果有网友有更好的实现方式,不妨提出来,大家一起探讨和分享。) ps:最近碰上公司项目比较赶,所以暂停了BottomNavigationBar的开源进度。 具体实现: demo基础上
去掉所有的xml中的所有android:fitsSystemWindows="true"
#####补个图 ###TODO 支持 bar background 不随tab选中而变化 支持 tab textColor selector ###Show Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
Step 2. Add the dependency
Step 3. use it in your layout xml
Step 4. add tab and tabSelected listener
and you can also use the BottomNavigationBehavior with CoordinatorLayout
####Set tab selected width( bottomLayout.setTabWidthSelectedScale(1.5f); ####Set tab text default visible bottomLayout.setTextDefaultVisible(true); #License BottomNavigationBar for Android The MIT License (MIT) Copyright (c) 2016 恶童历险记(https://github.com/RoyWallace) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论