Git Product home page Git Product logo

skytabview's Introduction

SkyTabView

Alt text Alt text

Sample

Alt text

How to use

 repositories {
      ...
      maven { url "https://jitpack.io" }
 }
 dependencies {
      compile 'com.github.ITDreamSKY:SkyTabView:0.2.0'
 }

Easy To Use

XML

 <iostyle.com.skytabview.SkyTabView
        android:id="@+id/skyTabView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

Custom in XML above V0.1.9+ (You can choose to add it or not)

       app:tab_width="90dp"
       app:tab_height="40dp"
       app:default_selected="right"
       app:selected_background_color="#4199fe"
       app:unselected_background_color="#fff"
       app:text_color_selected="#fff"
       app:text_color_unselected="#000"
       app:text_size_selected="16sp"
       app:text_size_unselected="14sp"
       app:stroke_width="1dp"
       app:radius="5dp"
       app:stroke_color_selected="#4199fe"
       app:stroke_color_unselected="#a6a6a6"/>

Activity

  mSkyTabView.setText("TAB1", "TAB2");
  mSkyTabView.setListener(new SkyTabView.OnClickListener() {
    @Override
    public void onLeftClick() {
        Log.d("SKY", "leftBtn is clicked!");
        //do something
    }

    @Override
    public void onRightClick() {
        Log.d("SKY", "rightBtn is clicked!");
        //do something
    }
  });

Update

V0.1.8 Resolve a double app icon problem
V0.1.9 Support custom in XML

skytabview's People

Contributors

iostyle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

axdx1314

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.