Giter Club home page Giter Club logo

materialtabhost's People

Contributors

operando avatar yanzm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

materialtabhost's Issues

Not able to style the component

I am using the component as:

        <net.yanzm.mth.MaterialTabHost
            android:id="@+id/activity_music_media_browser_tabs"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:colorTabIndicator="@android:color/black"
            app:colorAccent="@color/orange"
            style="@style/AppTheme.TabHost"
            />

The style is defined as in your README:

    <style name="AppTheme.TabHost" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimaryDark">#00695C</item>
        <item name="colorPrimary">#00897B</item>
        <item name="colorAccent">#FFD54F</item>
    </style>

The app:colorTabIndicator is making effect, but the rest not. Any suggestions what might went wrong?
Thanks in advance

How do you change the font size on a tab?

I tried the following code but findViewById(android.R.id.title) returns null. Is there a convenient way to adjust the font size of all tabs?

MaterialTabHost tabHost = (MaterialTabHost) findViewById(android.R.id.tabhost);

for (int i = 0; i < tabHost.getTabWidget().getChildCount(); i++) {
TextView tv = (TextView) tabHost.getTabWidget().getChildAt(i).findViewById(android.R.id.title);
tv.setTextSize(23);
}

does not scrollback to first tab

I have 4 tabs in my activity and here's the scenario:

  1. From the first tab, scroll all the way to the last/4th tab.
  2. Click the first tab indicator.

Expectes results:

  • Scrolls back to first tab
    Actual results:
    -Nothing happens. Does not scroll back to first tab
    -This only happens to the first tab. Other tabs(2nd & 3rd) work fine.

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.