GithubHelp home page GithubHelp logo

morristech / landing-strip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from novoda/landing-strip

0.0 1.0 0.0 856 KB

Your simple sliding viewpager tab strip: a landing strip without the fluff!

Java 100.00%

landing-strip's Introduction

landing-strip Download

Your simple sliding viewpager tab strip: a landing strip without the fluff!

Description

This is a tab strip born from other tabs strips, the key difference it YOU the client do all the hardwork. The library will handle state, lifecycle callbacks and the correct selection states. The client will provide the layout to inflate, handling the view updating, the different selection states.

Adding to your project

To start using this library, add these lines to the build.gradle of your project:

repositories {
    jcenter()
}

dependencies {
    compile 'com.novoda:landing-strip:<latest-version>'
}

Simple usage

The tab item layout

R.layout.tab_simple_text

<TextView
  android:layout_width="wrap_content"
  android:layout_height="match_parent"
  android:textSize="18dp"
  android:gravity="center" />

The tab strip which will contain the tab items

<com.novoda.landingstrip.LandingStrip
  android:id="@+id/landing_strip"
  android:layout_height="50dp"
  android:layout_width="match_parent"
  android:background="@android:color/holo_orange_dark"
  app:tabLayoutId="@layout/tab_simple_text" />

Attaching the ViewPager to the LandingStrip

LandingStrip landingStrip = (LandingStrip) findViewById(R.id.landing_strip);
landingStrip.setViewPager(viewPager, viewPager.getAdapter());

More info on the available properties and other usages in the Github Wiki.

Links

Here are a list of useful links:

  • We always welcome people to contribute new features or bug fixes, here is how
  • If you have a problem check the Issues Page first to see if we are working on it
  • For further usage or to delve more deeply checkout the Project Wiki
  • Looking for community help, browse the already asked Stack Overflow Questions or use the tag: support-landing-strip when posting a new question

landing-strip's People

Contributors

ataulm avatar ouchadam avatar stylingandroid avatar amlcurran avatar fourlastor avatar alexstyl avatar genypaul avatar

Watchers

 avatar

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.