To read the Chinese document, click here

ScreenShots:









Main functions and features:

  • More Animation effects of multiple Tab switching

  • Implements the effect of the middle button of the bottom navigation

  • Implements the kind of WeChat sliding navigation of the bottom gradient effect, with the change of the sliding distance

  • Implements the red mark on the TabBar, and can drag

  • The powerful BadgeView function, intelligent judgment digital hiding and cross-border display, two display modes.

  • Provide listening to the click event, middle click and badge is dragged away the interface

  • Reference annotation method, construction TabBarItem

Method and node description:

Attribute Explain:

Attribute Name Attribute Explain Parameter Type Default Value
TabHeight TabBar height, will cover the settings of layout_height dimension 56dp
TabNormalColor Font and icon of the normal color color 0xffAEAEAE(Gray)
TabSelectColor Font and icon of the selected color color 0xff59D9B9(Cyan)
TabTextSize the textsize of the bottom text dimension 14sp
TabIconSize the icon size of the tab dimension 24dp
TabIconFilter Set the icon change by the font color boolean true
TabMargin Set the icon distance above and below the distance from the text dimension 8dp
TabSelectBg Set the TabItem Selected bg color transparent
TabAnimate The animate type of the Tab Switch enum Scale
TabMiddleIcon The middle Icon of the tab drawable There is no
BadgeColor The background of the badgeView color #f00(RED)
BadgeDraggable Can drag on the badge touched by user boolean false
BadgePadding The background expansion distance of the badge dimension 4dp
BadgeTextSize The textSize of the Badge dimension 11dp
BadgeMargin The badge right margin in the TabBar dimension 9dp

Update Log

V1.0.5

  • Reverse the BadgeView cannot move to LeftTop
  • Titles annotaion support int
  • Remove BadgeModes annotation,Enhance the flexibility of the use of badges,Update the TabBar method
  • Add the TabSelectBg attribute,used to set the selected item bg

V1.1.2

  • Add the Bouncing of the Animation
  • Reverse don’t click when have no Pager in the Adapter

About Me

A college student, is still in the study of various techniques…

QQ:83508440

E-mail:[email protected]

License

Licensed under the Apache License, Version 2.0 (the "License") Copyright 2016 [JPeng] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.Copy the code