Coder Social home page Coder Social logo

nkoroieric / curvedbottomnavigation Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 26.88 MB

This a material design implementation of the bottomnavigation but with fab anchored on the view just like the BottomAppBar that was introduced recently by Google's Material Design Team.

Java 99.95% Kotlin 0.05%
bottom-navigation bottomnavigationview bottomappbar material-components materialcomponents

curvedbottomnavigation's Introduction

CurvedBottomNavigation

This a material design implementation of the bottomnavigation but with fab anchored on the view just like the BottomAppBar that was introduced recently by Google's Material Design Team.

Usage

<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">

<androidx.core.widget.NestedScrollView android:layout_width="match_parent"
                                       android:id="@+id/nested"
                                       android:layout_height="match_parent">
    <TextView
            android:layout_width="match_parent"
            android:text="@string/cat_curvedbottombar_lorem_ipsum"
            android:layout_height="wrap_content"/>
</androidx.core.widget.NestedScrollView>

<com.scaleup.admin.library.curvedbottomnavigation.CurvedBottomBar android:layout_width="match_parent"
                                                                  android:id="@+id/bar"
                                                                  app:curvedHideOnScroll="true"
                                                                  app:curvedBackgroundTint="@android:color/white"
                                                                  android:layout_gravity="bottom"
                                                                  app:menu="@menu/navigation"
                                                                  app:labelVisibilityMode="labeled"
                                                                  app:curvedFabCradleMargin="8dp"
                                                                  android:layout_height="wrap_content"/>

<com.google.android.material.floatingactionbutton.FloatingActionButton android:layout_width="wrap_content"
                                                                       app:layout_anchor="@id/bar"
                                                                       android:id="@+id/fab"
                                                                       android:layout_height="wrap_content"/>

</androidx.coordinatorlayout.widget.CoordinatorLayout>

I recommend using app:curvedBackgroundTint="@android:color/white" because theming is buggy and also use Material design theme the lib requires it.

curvedbottomnavigation's People

Contributors

nkoroieric avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.