All Projects → negier → GlueTabLayout

negier / GlueTabLayout

Licence: other
能精确修改TabLayout的下划线指示器的宽度,能使用粘动动画。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to GlueTabLayout

Android Tab Animation
Easily create TabLayout.Tab animations that sync with the scrolling progress of ViewPager
Stars: ✭ 68 (+74.36%)
Mutual labels:  tablayout
Android Video Listing Mvp
Android video listing with swipe view tabs based on mvp design pattern with complete functionalities like search and sort
Stars: ✭ 151 (+287.18%)
Mutual labels:  tablayout
ViewWorld
自定义View合集,展示各种自定义View/控件。项目包含了自定义Banner轮播图控件,自定义验证码输入框,自定义TabLayout等控件,持续更新中😉😉😉
Stars: ✭ 94 (+141.03%)
Mutual labels:  tablayout
Mao Rn Android Kit
⚙️ Android Native (ui components and modules) wrap in React Native
Stars: ✭ 74 (+89.74%)
Mutual labels:  tablayout
Universal Collapsingtablayout
CollapsingToolbarLayout with TabLayout
Stars: ✭ 118 (+202.56%)
Mutual labels:  tablayout
Android Tablayouthelper
A small library which helps to use TabLayout with ViewPager more easily.
Stars: ✭ 181 (+364.1%)
Mutual labels:  tablayout
Verticaltablayout
垂直纵向的TabLayout、轻松创建纵向导航
Stars: ✭ 1,088 (+2689.74%)
Mutual labels:  tablayout
TabSync
A lightweight synchronizer between Android's Tabs and Lists. Available on the View system and Jetpack Compose.
Stars: ✭ 98 (+151.28%)
Mutual labels:  tablayout
Pagerslidingtabstrip
一款android指示器TabLayout、PagerSlidingTabStrip,仿Boss直聘,带有红点未读提示
Stars: ✭ 152 (+289.74%)
Mutual labels:  tablayout
Apporder
骚操作之改造TabLayout,修改指示线宽增加切Tab过渡动画
Stars: ✭ 246 (+530.77%)
Mutual labels:  tablayout
Magicindicator
A powerful, customizable and extensible ViewPager indicator framework. As the best alternative of ViewPagerIndicator, TabLayout and PagerSlidingTabStrip —— 强大、可定制、易扩展的 ViewPager 指示器框架。是ViewPagerIndicator、TabLayout、PagerSlidingTabStrip的最佳替代品。支持角标,更支持在非ViewPager场景下使用(使用hide()、show()切换Fragment或使用setVisibility切换FrameLayout里的View等),http://www.jianshu…
Stars: ✭ 8,969 (+22897.44%)
Mutual labels:  tablayout
Whatsappviewpager
Swipeable tabs like WhatsApp in Android
Stars: ✭ 115 (+194.87%)
Mutual labels:  tablayout
Tabscrollattacher
Attach TabLayout and RecyclerView. Useful for categorizing RecyclerView items.
Stars: ✭ 196 (+402.56%)
Mutual labels:  tablayout
Materialdesign
Material Design 控件集合。ConstraintLayout、NestedScrollView、Toolbar、TabLayout、TextInputLayout。。。
Stars: ✭ 68 (+74.36%)
Mutual labels:  tablayout
UltimateTabLayout
A library for tab layout use with viewpager. Very useful, small
Stars: ✭ 33 (-15.38%)
Mutual labels:  tablayout
Studynote
Be ready for work
Stars: ✭ 60 (+53.85%)
Mutual labels:  tablayout
Raised Center Tab In Android
Customized tabhost having raised center tab.
Stars: ✭ 158 (+305.13%)
Mutual labels:  tablayout
PagerSlidingTabStrip
An interactive indicator to navigate between the different pages of a ViewPager
Stars: ✭ 2,194 (+5525.64%)
Mutual labels:  tablayout
Material-BottomBarLayout
🎉A material navigation bar library which has pretty animations and different ways of arrangement.
Stars: ✭ 56 (+43.59%)
Mutual labels:  tablayout
Jpagerslidingtabstrip
🔥A useful tablayout modify from astuetz/PagerSlidingTabStrip
Stars: ✭ 233 (+497.44%)
Mutual labels:  tablayout

GlueTabLayout

能精确修改TabLayout下划线指示器的宽度,能使用粘动动画

效果

预览

example-release.apk

使用

GlueTabLayout本质就是TabLayout,是在TabLayout的基础上添加了两个重要的功能,所以,您怎么用TabLayout,就可以怎么用GlueTabLayout,那么接下来 我描述一下我新增加的这两个功能及用法。

1.请先在build.gradle中添加依赖:

implementation 'com.android.support:design:28.0.0'

2.现在您可以将我项目中Library下的GlueTabLayout拷进您的项目中使用了。(这步别忘了哟)

添加的功能方法:

① 修改下划线指示器宽度

//设置下划线指示器的宽度为原来的一半
GlueTabLayout.setTabIndicatorWidth(0.5f);

② 修改下划线指示器动画

为更好的满足可能的需求我将动画分为三类,下面会介绍,并写了两个方法用来分别设置滑动的时候下划线指示器的动画点击的时候下划线指示器的动画

  • GLUE 全粘动动画 默认
  • HALF_GLUE 半粘动动画
  • NONE 无动画
设置滑动的时候下划线指示器的动画:
GlueTabLayout.setSlidingIndicatorAnimType(GlueTabLayout.AnimType.GLUE);
设置点击的时候下划线指示器的动画:
GlueTabLayout.setClickIndicatorAnimType(GlueTabLayout.AnimType.GLUE);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].