Code Monkey home page Code Monkey logo

engorgio-bottom-bar's Introduction

Engorgio-Bottom-Bar

A bottom bar with an expanding title effect for android

alt text

  • Written In Kotlin
  • Handle 5 Tabs At Max
  • Lite weight
  • Min SDK 16

Dependency

Project Level

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

App Level

	dependencies {
		implementation 'com.github.AkashBang:Engorgio-Bottom-Bar:0.1.1'
		}

Code Example

XML

	<com.engorgio.engorgiobottombar.EngorgioBottomBar
            android:background="#FFF"
            android:layout_gravity="bottom"
            android:id="@+id/engorgioBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

Kotlin

	class MainActivity : AppCompatActivity() {
    	override fun onCreate(savedInstanceState: Bundle?) {
			super.onCreate(savedInstanceState)
			setContentView(R.layout.activity_main)
			val tab1 = ETab(R.drawable.house, "Home",Color.parseColor("#b69bfc"))
			val tab2 = ETab(R.drawable.heart, "Heart", Color.parseColor("#f963d1"))
			val tab3 = ETab(R.drawable.search, "Search",Color.parseColor("#fcbd4c"))
			val tab4 = ETab(R.drawable.avatar, "User", Color.parseColor("#4adcfd"))
			val tablist = arrayListOf(tab1, tab2, tab3, tab4)


			// You can optionally set extras to tabs which you can retrieve back on the tab clicked callback 
			val extra = Bundle()
			extra.putString("Key","Value")
			tab1.extra = extra


			engorgioBar.setUserTabs(tablist)
			engorgioBar.setOnTabClickListener(object :EngorgioBottomBar.OnTabClickListener{

				override fun onTabClicked(position: Int, eTab: ETab) {
					//Handle Tab Click Here
				}
			})
		}
	}

engorgio-bottom-bar's People

Contributors

akashbangad avatar

Watchers

James Cloos 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.