Giter Site home page Giter Site logo

Comments (8)

JordyCuan avatar JordyCuan commented on May 19, 2024 6

@rafakob @Ashok-Varma Hi, I have an issue, if I set this dimensions values in dimens.xml file and modify the default values I can not see a change. Can you show me how to override these dimensions? Thanks in advance

from bottomnavigation.

Ashok-Varma avatar Ashok-Varma commented on May 19, 2024

@adilkhan95 those sizes are taken from google material design specs (https://www.google.com/design/spec/components/bottom-navigation.html). in future we might provide a way to change them but for now we will stick with material design guide lines

from bottomnavigation.

rafakob avatar rafakob commented on May 19, 2024

You can always override those dimensions in your project, eg:

<dimen name="badge_text_size">12sp</dimen><!-- 10 -->
<dimen name="badge_corner_radius">13dp</dimen><!-- 15 -->
<dimen name="badge_width_padding">4dp</dimen><!-- 4 -->
<dimen name="badge_height_padding">1dp</dimen><!-- 1 -->
<dimen name="badge_top_margin">2dp</dimen><!-- 2 -->

Refer to -> https://github.com/Ashok-Varma/BottomNavigation/blob/master/bottom-navigation-bar/src/main/res/values/dimens.xml

from bottomnavigation.

Ashok-Varma avatar Ashok-Varma commented on May 19, 2024

@rafakob thanks for your support

from bottomnavigation.

lxnx0 avatar lxnx0 commented on May 19, 2024

Can someone show me how to override these dimensions? I added these value in dimens.xml, but it seems like not working for me.

from bottomnavigation.

Ashok-Varma avatar Ashok-Varma commented on May 19, 2024

after adding these lines you need to modify the values those are the default values so they look same.

Change the values of these as you like and check.

from bottomnavigation.

lxnx0 avatar lxnx0 commented on May 19, 2024

Does it means that I need to edit the source file instead of just override it with my own dimens.xml file?

Edit
Yes I already changed the default values after put those line but still the display remains.

from bottomnavigation.

Ashok-Varma avatar Ashok-Varma commented on May 19, 2024

If you don't need animations you can use tab layout for that.
Please create a new issues if you have any questions. this issue was closed.

from bottomnavigation.

Related Issues (20)

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.