All Projects → volsahin → Bottomify Navigation View

volsahin / Bottomify Navigation View

Licence: apache-2.0
A nice looking Spotify like bottom navigation view

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Bottomify Navigation View

react-spring-bottom-sheet
Accessible ♿️, Delightful ✨, & Fast 🚀
Stars: ✭ 604 (+522.68%)
Mutual labels:  bottom-sheet, bottomsheet
React Native Scroll Bottom Sheet
Cross platform scrollable bottom sheet with virtualisation support, native animations at 60 FPS and fully implemented in JS land 🔥
Stars: ✭ 1,226 (+1163.92%)
Mutual labels:  bottomsheet, bottom-sheet
Stickytabbarviewcontroller
Sticky and Collapsible View on top of tab bar
Stars: ✭ 82 (-15.46%)
Mutual labels:  bottomsheet, bottom-sheet
React Native Bottom Sheet
A performant interactive bottom sheet with fully configurable options 🚀
Stars: ✭ 2,695 (+2678.35%)
Mutual labels:  bottomsheet, bottom-sheet
BottomSheetBehavior
BottomSheetBehavior is an android library extracted from the Google I/O 2018 application source code.
Stars: ✭ 12 (-87.63%)
Mutual labels:  bottom-sheet, bottomsheet
Ubottomsheet
iPhone Maps App bottom sheet - A Protocol Oriented Approach
Stars: ✭ 259 (+167.01%)
Mutual labels:  bottomsheet, bottom-sheet
React Native Bottomsheet Reanimated
React Native bottom sheet with fully native 60 FPS animations and awesome user experience
Stars: ✭ 80 (-17.53%)
Mutual labels:  bottomsheet, bottom-sheet
Exportify
Export Spotify playlists using the Web API. Analyze them in the Jupyter notebook.
Stars: ✭ 80 (-17.53%)
Mutual labels:  spotify
Fluentappbar
Fluent App Bar: An Android bottom-sheet-based navigation bar based on Microsoft's Fluent Design System
Stars: ✭ 88 (-9.28%)
Mutual labels:  bottomsheet
Atomify
Where Atom meets Spotify (for Macs)
Stars: ✭ 76 (-21.65%)
Mutual labels:  spotify
Spotispy
Displays the album art from your currently playing Spotify track in full-screen.
Stars: ✭ 74 (-23.71%)
Mutual labels:  spotify
Whisperify
An interactive way to learn about your favourite songs on Spotify. Quiz yourself on your favourite playlists and share quizzes with friends.
Stars: ✭ 91 (-6.19%)
Mutual labels:  spotify
Vidify
Play music videos automatically for the songs playing on any device
Stars: ✭ 95 (-2.06%)
Mutual labels:  spotify
Spotify Web Api Js
A client-side JS wrapper for the Spotify Web API
Stars: ✭ 1,313 (+1253.61%)
Mutual labels:  spotify
Spotify Web Api Kotlin
Spotify Web API wrapper for Kotlin/JVM, Kotlin/Android, Kotlin/JS, and Kotlin/Native. Includes a Spotify Web Playback SDK wrapper for Kotlin/JS, and a spotify-auth wrapper for Kotlin/Android
Stars: ✭ 86 (-11.34%)
Mutual labels:  spotify
Pause On Lock
Pause/Resume your music player when locking/unlocking your Linux desktop.
Stars: ✭ 79 (-18.56%)
Mutual labels:  spotify
Lirik.app
Shows lyrics for currently playing song in your Spotify account.
Stars: ✭ 93 (-4.12%)
Mutual labels:  spotify
Lottiebottomnavbar
A Customisable bottom navbar with Lottie animation
Stars: ✭ 76 (-21.65%)
Mutual labels:  bottombar
Spotifykit
Swift client for Spotify Web API
Stars: ✭ 84 (-13.4%)
Mutual labels:  spotify
Android Auth
Spotify authentication and authorization for Android. Part of the Spotify Android SDK.
Stars: ✭ 92 (-5.15%)
Mutual labels:  spotify

bottomify-navigation-view

A nice looking Spotify like bottom navigation view

alt tag alt tag

Usage

Create Menu File

Create a menu file below resource folder. Right click to res then New > Android Resource File, type a file name and make sure you choose ResourceType as Menu. Here is a sample menu file. You can add android:checked="true" if you want that menu item active at the begin

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:id="@+id/action_home"
        android:icon="@drawable/ic_home_black_24dp"
        android:checked="true"
        android:title="@string/home" />
    <item
        android:id="@+id/action_browse"
        android:icon="@drawable/ic_speaker_group_black_24dp"
        android:title="@string/browse" />
    <item
        android:id="@+id/action_search"
        android:icon="@drawable/ic_search_black_24dp"
        android:title="@string/search" />
    <item
        android:id="@+id/action_radio"
        android:icon="@drawable/ic_radio_black_24dp"
        android:title="@string/radio" />
    <item
        android:id="@+id/action_library"
        android:icon="@drawable/ic_library_music_black_24dp"
        android:title="@string/your_library" />
</menu>

Bottomify to Layout

Add Bottomify in your layout xml

    <com.volcaniccoder.bottomify.BottomifyNavigationView
        android:id="@+id/bottomify_nav"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/bottomifyBackgroundColor"
        android:orientation="horizontal"
        app:menu="@menu/navigation_items"
        app:active_color="@color/bottomifyActiveColor"
        app:passive_color="@color/bottomifyPassiveColor"
        app:pressed_color="@color/bottomifyPressedColor"
        app:item_text_size="10sp"
        app:item_padding="4dp"
        app:animation_duration="300"
        app:scale_percent="5" />
}

Here are some comments about what xml attributes do

       /**
         * app:menu -> Provide a menu for bottom view items
         * app:active_color -> The color of the active and choosen menu item
         * app:passive_color -> The color of non active menu items
         * app:pressed_color -> The color when you press on menu item
         * app:item_text_size -> The size of the menu item text
         * app:item_padding -> The padding of the menu item
         * app:animation_duration="300" -> The amount of time of the click animation
         * app:scale_percent="5" -> The percent of downsizing animation. If its 50 view will downsize to half and full again
         */

Code Side

If you want to be notified about the change of navigation item you can implement OnNavigationItemChangeListener

        val bottomify = findViewById<BottomifyNavigationView>(R.id.bottomify_nav)
        bottomify.setOnNavigationItemChangedListener(object : OnNavigationItemChangeListener {
            override fun onNavigationItemChanged(navigationItem: BottomifyNavigationView.NavigationItem) {
                Toast.makeText(this@MainActivity,
                        "Selected item at index ${navigationItem.position}",
                        Toast.LENGTH_SHORT).show()
            }
        })

If you want to set active item not by a click but programmatically

        bottomify.setActiveNavigationIndex(2)

Influence

Spotify

This project influenced by Spotify's good looking bottom bar

Download

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

  	dependencies {
		implementation 'com.github.volsahin:bottomify-navigation-view:1.0.2'
	}

License

Copyright 2018 Volkan Şahin

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].