GithubHelp home page GithubHelp logo

gamalragab21 / sidebubbles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonathandelasen/sidebubbles

0.0 0.0 0.0 58.31 MB

Android library to provide a sticky side menu with options in form of bubbles.

License: Apache License 2.0

Kotlin 100.00%

sidebubbles's Introduction

SideBubbles

Video usage

Android library to provide a sticky side menu with options in form of bubbles.

Video usage

Instalation ๐Ÿ› 

Gradle

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

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

Add the dependency

dependencies {
        implementation 'com.github.JonathandelaSen:SideBubbles:0.0.7'
}

Maven

<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>


<dependency>
    <groupId>com.github.JonathandelaSen</groupId>
    <artifactId>SideBubbles</artifactId>
    <version>Tag</version>
</dependency>

Usage ๐Ÿ“ฒ

Set the layout

<devjdelasen.com.sidebubbles.SideBubbles
        android:id="@+id/sideBubbles"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginBottom="36dp"
        app:side_bubbles_bg_color="@color/colorAccent"
        app:side_bubbles_menu_color="@color/white"
        />

Set the bubbles

sideBubbles.addItem("chat", R.drawable.ic_chat, ContextCompat.getColor(this, R.color.colorAccent))
sideBubbles.addItem("geo", R.drawable.ic_geo, ContextCompat.getColor(this, R.color.colorAccent))
sideBubbles.addItem("ice_cream", R.drawable.ic_ice_cream)
sideBubbles.setClickItemListener(object: SideBubbles.OnClickItemListener {
    override fun onClickItem(id: String) {
        Toast.makeText(this@MainActivity, id, Toast.LENGTH_SHORT).show()
    }
})
        

Enjoy ๐ŸŽ‰

Features โœ…

  • Click to open
  • Long click and slide to select

Next ๐Ÿš€

  • Different animations
  • Left side support

Author

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Jonnie

sidebubbles's People

Contributors

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