Library for Sliding Tab With Color Icons!

Overview

Sliding Tab With Color Icons

Sliding Tab With Color Icons!

Sliding Tab With Color Icons - Example1 Sliding Tab With Color Icons - Example2

Kindly use the following links to use this library:

In build.gradle (Project)

allprojects {
	repositories {
	...
		maven { url "https://jitpack.io" }
	}
}

And then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)

 dependencies {
	compile 'com.github.myinnos:SlidingTabWithColorIcons:1.0'
	}

How to use

Step 1: create layout:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tab="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <in.myinnos.customimagetablayout.ChangeColorTab
        android:id="@+id/tabChangeColorTab"
        android:layout_width="match_parent"
        android:layout_height="60dp">

        <in.myinnos.customimagetablayout.ChangeColorItem
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:padding="5dp"
            tab:item_icon="@drawable/ic_one"
            tab:item_icon_color="#ff45c01a"
            tab:item_tab_color="@color/colorPrimary"
            tab:item_tab_position="bottom"
            tab:item_text="message"
            tab:item_text_color="@color/colorPrimaryDark"
            tab:item_text_size="12sp" />
	    
	    ...

    </in.myinnos.customimagetablayout.ChangeColorTab>

    <android.support.v4.view.ViewPager
        android:id="@+id/viewpager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/tabChangeColorTab" />
</RelativeLayout>

Step 2: set view pager to ChangeColorTab:

ViewPager mViewPager = (ViewPager) findViewById(R.id.viewpager);
ChangeColorTab changeColorTab = (ChangeColorTab) findViewById(R.id.tabChangeColorTab);
changeColorTab.setViewpager(mViewPager);
//Attach page Adapter
mViewPager.setAdapter(<YOUR_VIEW_PAGE_ADAPTER>);

Features

  • Set Tab Icon:
 tab:item_icon="@drawable/ic_one"
  • Change Icon Color:
 tab:item_icon_color="#ff45c01a"
  • Change Tab Color:
 tab:item_tab_color="@color/colorPrimary"
  • Change Tab Line Position (bottom|top):
 tab:item_tab_position="bottom"
  • Set Text (no need text simply skip this):
 tab:item_text="message"
  • Change Text Color:
 tab:item_text_color="@color/colorPrimaryDark"
  • Change Text Size:
 tab:item_text_size="12sp"
Any Queries? or Feedback, please let me know by opening a new issue!

Contact

Prabhakar Thota

License

Copyright 2017 MyInnos

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.
You might also like...
Circular motion is a ViewPager library that can be used to make Awesome Onboarding designs.

CircularMotion Android Circular Motion Onboarding library Circular motion is a ViewPager library that can be used to make Awesome Onboarding designs.

Android LiquidSwipe Library
Android LiquidSwipe Library

Android LiquidSwipe Library

Android Concentric Onboarding library
Android Concentric Onboarding library

Android Concentric Onboarding library

NTabLayout is a simple tab bar custom view under android which has click-sliding and scaling up animation effect.
NTabLayout is a simple tab bar custom view under android which has click-sliding and scaling up animation effect.

NTabLayout Brief NTabLayout is a simple tab bar custom view under android which has click-sliding and scaling up animation effect. This tab bar's effe

Animated Tab Bar is an awesome navigation extension that you can use to add cool, animated and fully customizable tab navigation in your apps
Animated Tab Bar is an awesome navigation extension that you can use to add cool, animated and fully customizable tab navigation in your apps

Animated Tab Bar is an awesome navigation extension that you can use to add cool, animated and fully customizable tab navigation in your apps. The extension provides handy methods and properties to change the behaviour as well as the appearance of the navigation bar.

About-icons - Android library to easily give credit if using icons which require attribution

Android About Icons Library About this project Features How to use Planned improvements Screenshots Contribute Apps using this library License About t

🎨 A color picker for Android. Pick a color using color wheel and slider (HSV & alpha).
🎨 A color picker for Android. Pick a color using color wheel and slider (HSV & alpha).

ColorPicker English | 中文 A ColorPicker for Android. Pick a color using color wheel and slider (HSV & alpha). Gradle dependencies { implementation

Over 1600 customizable icons for Android including 750+ Google Material Design icons, 25 ready-made social badges, and more!
Over 1600 customizable icons for Android including 750+ Google Material Design icons, 25 ready-made social badges, and more!

droidicon - Over 1600 icons for Android! Icons From... Google Material Design FontAwesome Iconic Entypo Meteocons Unicode Icons Your own custom icons

This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.

Note: we are not actively responding to issues right now. If you find a bug, please submit a PR. Android Sliding Up Panel This library provides a simp

This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.

Note: we are not actively responding to issues right now. If you find a bug, please submit a PR. Android Sliding Up Panel This library provides a simp

Color.kt is a modern color science library for Kotlin Multiplatform and Java.

Color.kt is a modern color science library for Kotlin Multiplatform and Java. It includes modern perceptually-uniform color spaces and color appearance models, such as Oklab and ZCAM.

Color.kt is a modern color science library for Kotlin Multiplatform and Java.

Color.kt is a modern color science library for Kotlin Multiplatform and Java. It includes modern perceptually-uniform color spaces and color

Navigation tab strip with smooth interaction.
Navigation tab strip with smooth interaction.

NavigationTabStrip Navigation tab strip with smooth interaction. You can check the sample app here. Warn This library is not more supported. If you w

Navigation tab bar with colorful interactions.
Navigation tab bar with colorful interactions.

NavigationTabBar Navigation tab bar with colorful interactions. You can check the sample app here. Warn This library is not more supported. If you wa

Extended Android Tab Layout with animated indicators that have continuous feedback.
Extended Android Tab Layout with animated indicators that have continuous feedback.

Dachshund Tab Layout Introduction Boosted Android Tab Layout with custom animated indicators including "Dachshund" animation inspired by this. Sample

Android sliding panel that is part of the view hierarchy, not above it.
Android sliding panel that is part of the view hierarchy, not above it.

sliding-panel A ViewGroup that implements a sliding panel that is part of the view hierarchy, not above it. Difference from other libraries All other

Sliding cards with pretty gallery effects.
Sliding cards with pretty gallery effects.

SlidingCard Sliding cards with pretty gallery effects. Download Include the following dependency in your build.gradle file. Gradle: repositories {

Another sliding menu base on DrawerLayout
Another sliding menu base on DrawerLayout

FantasySlide 一个 DrawerLayout 的扩展,具有帅气的动画与创新的交互。一次手势完成滑出侧边栏与选择菜单。欢迎下载 demo 体验。 https://raw.githubusercontent.com/mzule/FantasySlide/master/demo.apk 效果

Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle!
Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle!

LabeledSeekSlider Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle! Minimum target

Comments
  • [ImgBot] optimizes images

    [ImgBot] optimizes images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 67% 🎉

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /app/src/main/res/drawable/ic_one.png | 15.15kb | 0.61kb | 95.96% | | /app/src/main/res/drawable/ic_three.png | 15.40kb | 0.67kb | 95.62% | | /app/src/main/res/drawable/ic_two.png | 15.63kb | 0.87kb | 94.47% | | /app/src/main/res/drawable/ic_four.png | 15.88kb | 0.93kb | 94.17% | | /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png | 10.24kb | 9.45kb | 7.73% | | /app/src/main/res/mipmap-xxhdpi/ic_launcher.png | 7.54kb | 7.04kb | 6.66% | | /app/src/main/res/mipmap-xhdpi/ic_launcher.png | 4.73kb | 4.46kb | 5.76% | | /app/src/main/res/mipmap-hdpi/ic_launcher.png | 3.34kb | 3.24kb | 2.90% | | /app/src/main/res/mipmap-mdpi/ic_launcher.png | 2.15kb | 2.10kb | 2.40% | | | | | | | Total : | 90.06kb | 29.36kb | 67.40% |


    📝docs | :octocat: repo | 🙋issues | 🏅swag | 🏪marketplace

    opened by imgbot[bot] 0
  • Problem with ViewPager

    Problem with ViewPager

    Hi

    I have a problem with the tabs and the viewpager, when i use the method viewPager.setCurrentItem() my viewpager changes to that item but my tab doesnt refresh the active tab.

    How could i solve that?

    opened by youngsdeveloper 0
  • No tab line

    No tab line

    Hello! How could i remove the tab line from a tab and let only the icon and text? I have tried put tab color "@android:color/transparent" but it only put tab line black. Any idea? Regards

    opened by youngsdeveloper 3
Releases(1.0)
Owner
Prabhakar Thota
Mobile Engineer[AIML], UI/UX. I believe in the quote which says "Creativity is thinking up new things. Innovation is doing new things." Happy Coding :)
Prabhakar Thota
Navigation tab bar with colorful interactions.

NavigationTabBar Navigation tab bar with colorful interactions. You can check the sample app here. Warn This library is not more supported. If you wa

Devlight 4.9k Dec 31, 2022
Library containing common animations needed for transforming ViewPager scrolling for Android v13+.

ViewPagerTransforms Library containing common animations needed for transforming ViewPager scrolling on Android v13+. This library is a rewrite of the

Ian Thomas 2.5k Dec 31, 2022
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Jake Wharton 10.2k Jan 3, 2023
ViewPagers library for Android

freepager Ready-to-use view pagers for your project. Based on Swipes navigation demo repository Usage: Gradle: dependencies { compile 'pro.alexza

Alex Zaitsev 460 Nov 25, 2022
A Material Design ViewPager easy to use library

MaterialViewPager Material Design ViewPager easy to use library Sample And have a look on a sample Youtube Video : Youtube Link Download In your modul

Florent CHAMPIGNY 8.2k Dec 29, 2022
Android library for fluid tablayout animation as seen on Snapchat.

SnapTabLayout Show some ❤️ and star the repo to support the project This library is the implementation of TabLayout as seen on popular messaging app S

Niranjan Kurambhatti 714 Dec 25, 2022
Pixplicity 915 Nov 8, 2022
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Jake Wharton 10.2k Jan 5, 2023
A simple app that consumes The Ricky & Morty API to display the tv show characters, was trying to learn about pagination with the paging 3 library

Ricky&MortyAPIDemo A simple app that consumes The Rick and Morty API which is a REST and GraphQL API based on the television show Rick and Morty. I wa

Joel Kanyi 9 Jul 12, 2022
LiquidSwipe is a ViewPager library that can be used to make Awesome Onboarding designs.

LiquidSwipe LiquidSwipe is a ViewPager library that can be used to make Awesome Onboarding designs. Usage Set up the dependency Add the mavenCentral()

Farham Hosseini 4 Nov 5, 2021