Giter VIP home page Giter VIP logo

Comments (7)

samita121 avatar samita121 commented on May 20, 2024

I wonder to know it too.

from tabdrawer.

ashazar avatar ashazar commented on May 20, 2024

When you click on another tab with sub-items, you actually don't select it yet.
That's why the actual (previous selected) tab is still kind-of active. (inactiveSelected)
So i planned to give it a darker color of selected background color as inactiveSelected color

The arguments for the setTabBackgroundColors() and setBackgroundColors() are as follows:
(DEFAULT_COLOR, SELECTED_COLOR, INACTIVE_SELECTED_COLOR)

You can make its inactiveSelected color as the default (unselected) color.

For all Tabs:

TabDrawerData
    .setTabBackgroundColors(DEFAULT_COLOR, SELECTED_COLOR, DEFAULT_COLOR);

For a specific Tab:

Tab
    .setBackgroundColors(DEFAULT_COLOR, SELECTED_COLOR, DEFAULT_COLOR);

from tabdrawer.

deshario avatar deshario commented on May 20, 2024

Ok Thankx. It works.

from tabdrawer.

deshario avatar deshario commented on May 20, 2024

When we popBackStackImmediate() all fragments its will be returned to first page... but tab is still selected to previous one. can we implement with onBackPressed() to select first tab.
backpressed

from tabdrawer.

ashazar avatar ashazar commented on May 20, 2024

Good catch! Thanks.

I will add a method to select a tab manually, in the coming release.

from tabdrawer.

deshario avatar deshario commented on May 20, 2024

Oh I'm waiting for your new release... because i need to submit my app very soon 😉😉😉

from tabdrawer.

ashazar avatar ashazar commented on May 20, 2024

You need to change TabDrawer's version to 1.2.0 in your build.gradle file.
Then you can use tabDrawer.setSelectedTab(tabPosition, itemPosition, false)

from tabdrawer.

Related Issues (4)

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.