All Projects → Dsiner → TabView

Dsiner / TabView

Licence: Apache-2.0 license
TabView for Android ——Slide indicator/button/tab; 滑动指示器/按钮/TAB控件

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to TabView

react-native-viewpager-indicator
修改自react-native-scrollable-tab-view,增加了根据文字内容适配下划线长度的功能。
Stars: ✭ 52 (+136.36%)
Mutual labels:  tab, indicator, viewpager-indicator
ArcPageIndicator
Android Page Indicator for ViewPager with original animations. It uses an ellipse to dispose indication spots, and can draw a hand, like in old elevators.
Stars: ✭ 73 (+231.82%)
Mutual labels:  indicator, viewpager-indicator
buttons tabbar
A Flutter package that implements a TabBar where each label is a toggle button.
Stars: ✭ 49 (+122.73%)
Mutual labels:  button, tab
MultiIndicator
多功能指示器,适用于ViewPager 多场景
Stars: ✭ 44 (+100%)
Mutual labels:  indicator, viewpager-indicator
Dotsindicator
Three material Dots Indicators for view pagers in Android !
Stars: ✭ 2,447 (+11022.73%)
Mutual labels:  indicator, viewpager-indicator
IndicatorView
IndicatorView Library For Android
Stars: ✭ 41 (+86.36%)
Mutual labels:  indicator, viewpager-indicator
smart-webcomponents-community
Material & Bootstrap Web Components built with Smart
Stars: ✭ 30 (+36.36%)
Mutual labels:  button
aria-switch-control
ARIA Switch control component
Stars: ✭ 38 (+72.73%)
Mutual labels:  button
vue-loading-button
👇 Vue button with slideout loading indicator
Stars: ✭ 39 (+77.27%)
Mutual labels:  button
flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 1,021 (+4540.91%)
Mutual labels:  indicator
quoll
Display custom icons on system tray
Stars: ✭ 15 (-31.82%)
Mutual labels:  indicator
RxActivityIndicator-Android
A small library that helps you keep track of operations progress. It allows you to show progress bar (indicator) in a convenient way.
Stars: ✭ 12 (-45.45%)
Mutual labels:  indicator
ZFMultiTabPage
iOS Swift开发的多Tab框架
Stars: ✭ 37 (+68.18%)
Mutual labels:  tab
vue-burger-button
🍔 vue-burger-button is a functional component, which is faster than a regular component, and is pretty small (JS min+gzip is lower than 700b and CSS min+gzip is lower than 400b).
Stars: ✭ 41 (+86.36%)
Mutual labels:  button
bootstrap-directional-buttons
Directional / Arrow buttons for Bootstrap
Stars: ✭ 18 (-18.18%)
Mutual labels:  button
ngx-tabset
A very simple library to let you create some tabs
Stars: ✭ 19 (-13.64%)
Mutual labels:  tab
vscode-powertools
A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.
Stars: ✭ 44 (+100%)
Mutual labels:  button
captouch
👇 Add capacitive touch buttons to any FPGA!
Stars: ✭ 96 (+336.36%)
Mutual labels:  button
MMM-page-indicator
MagicMirror² module to display what page you're on.
Stars: ✭ 33 (+50%)
Mutual labels:  indicator
sleek button
A simple but yet customizable button.
Stars: ✭ 63 (+186.36%)
Mutual labels:  button

TabView for Android

License API Download

Demos

Setup

Maven:

<dependency>
  <groupId>com.dsiner.lib</groupId>
  <artifactId>tabview</artifactId>
  <version>1.0.2</version>
</dependency>

or Gradle:

compile 'com.dsiner.lib:tabview:1.0.2'

Usage

    <com.d.lib.tabview.TabView
        android:id="@+id/tabv_tab"
        android:layout_width="365dp"
        android:layout_height="36dp"
        app:tabv_colorMain="#4577B7"
        app:tabv_colorSub="#ffffff"
        app:tabv_duration="250"
        app:tabv_padding="2px"
        app:tabv_textSize="14dp"
        app:tabv_title="TAB1;TAB2;TAB3;TAB4" />

Operation

app:tabv_title指定标题(或代码中设置标题,如下)
        tabView.setTitle(new String[]{"TAB1", "TAB2", "TAB3", "TAB4"});
其他参数都具有默认值(可选)

SetListener(可选)

        tabView.setOnTabSelectedListener(new TabView.OnTabSelectedListener() {
            @Override
            public void onTabSelected(int index) {
                
            }
        });

Parameter

Attrs Type Function
tabv_title string 标题(各个标题以";"分隔)
tabv_textSize dimension 标题文字大小
tabv_colorMain color 主颜色
tabv_colorSub color 辅颜色
tabv_padding dimension 边框宽度
tabv_paddingSide dimension 两端预留间距
tabv_duration integer 动画时长(ms)

More usage see Demo

Licence

Copyright 2017 D

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.
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].