All Projects β†’ siddharth2010 β†’ Bubbles

siddharth2010 / Bubbles

Licence: mit
⚑️A library for adding messenger style floating bubbles to any android application πŸ“²

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Bubbles

Awesome Android Ui
😎 A curated list of awesome Android UI/UX libraries
Stars: ✭ 353 (+434.85%)
Mutual labels:  library, android-ui
Music Player Go
🎢🎼 Very slim music player πŸ‘¨β€πŸŽ€ 100% made in Italy πŸ•πŸŒ³πŸŒžπŸπŸŒ„
Stars: ✭ 654 (+890.91%)
Mutual labels:  ui-design, android-ui
Loginui Android
Login User Interface in android with innovative, beautiful and creative background πŸ˜ŠπŸ˜ŠπŸ˜‰
Stars: ✭ 374 (+466.67%)
Mutual labels:  ui-design, android-ui
BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (-51.52%)
Mutual labels:  overlay, android-ui
Fillingbutton
πŸ”₯Replace typical onLongClickListener with this library!
Stars: ✭ 31 (-53.03%)
Mutual labels:  library, android-ui
Animatefx
A library of +70 ready-to-use animations for JavaFX
Stars: ✭ 254 (+284.85%)
Mutual labels:  library, ui-design
My flutter challenges
Flutter project containing all my flutter UI challenges
Stars: ✭ 563 (+753.03%)
Mutual labels:  ui-design, android-ui
Permissionsswiftui
A SwiftUI package to beautifully display and handle permissions.
Stars: ✭ 220 (+233.33%)
Mutual labels:  library, ui-design
Cardviewlist
An elegant and responsive CardView like Android on iOS with Swift. Available horizontal and vertical scrolling with full animations and customizable.
Stars: ✭ 30 (-54.55%)
Mutual labels:  library, android-ui
Similarloadingview
A stylish loading view for Android
Stars: ✭ 26 (-60.61%)
Mutual labels:  library, android-ui
PlantShopUI-Android
Check out the new style for App Design aims for the Online Plant Shop Service using jetpack compose...πŸ˜‰πŸ˜€πŸ˜πŸ˜Ž
Stars: ✭ 29 (-56.06%)
Mutual labels:  ui-design, android-ui
Eyebrows
An eyebrows gradient color animation for android.
Stars: ✭ 49 (-25.76%)
Mutual labels:  library, ui-design
CoolAnimation4Beginner
Making Beauty Android UI/UX Design with cool Animation
Stars: ✭ 21 (-68.18%)
Mutual labels:  ui-design, android-ui
Aestheticdialogs
πŸ“± An Android Library for πŸ’«fluid, 😍beautiful, 🎨custom Dialogs.
Stars: ✭ 352 (+433.33%)
Mutual labels:  library, android-ui
Teaset
A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
Stars: ✭ 2,845 (+4210.61%)
Mutual labels:  library, overlay
Cornercutlinearlayout
Linear Layout that allow corner (parent and children) cuts, complex shadow and divider.
Stars: ✭ 391 (+492.42%)
Mutual labels:  library, android-ui
Confetti.js
A simple confetti animation for your website :)
Stars: ✭ 170 (+157.58%)
Mutual labels:  library, overlay
Androidappshortcuts
App Shortcuts for Android on Pre Nougat 7.1!
Stars: ✭ 223 (+237.88%)
Mutual labels:  library, android-ui
Swipeablecard
A simple implementation of swipe card like StreetView
Stars: ✭ 812 (+1130.3%)
Mutual labels:  library, android-ui
Tagsedittext
Android TagsEditText View
Stars: ✭ 47 (-28.79%)
Mutual labels:  library, android-ui

License: MIT Download Build Status

Bubbles

Bubbles is an Android library to provide a backwards compatible Android Q (API 29) Bubble Experience for all android devices (API 16+).

Screenshots:

App Permissions The Bubble Bubble Tapped Just Before Delete
App Permissions The Bubble Bubble Tapped Just Before Delete

Package Structure of the Library

Package Structure

Usage

Setup

The Library is hosted via JCenter, and can be added as a dependency in your project.

Gradle Maven
compile 'com.siddharthks.bubbles:bubbles:1.0.0' <dependency>
  <groupId>com.siddharthks.bubbles</groupId>
  <artifactId>bubbles</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

Interface

Let's start with a simple setup for the Service

public class FloatingService extends FloatingBubbleService {
    ...
}

Adding your library in the manifest

<service android:name="<YOUR_PACKAGE>.FloatingService" />

Start the service

startService(new Intent(context, FloatingService.class));

Customising the Service

public class FloatingService extends FloatingBubbleService {

  @Override
  protected FloatingBubbleConfig getConfig() {
    return new FloatingBubbleConfig.Builder()
        // Set the drawable for the bubble
        .bubbleIcon(bubbleDrawable)

        // Set the drawable for the remove bubble
        .removeBubbleIcon(removeIconDrawable)

        // Set the size of the bubble in dp
        .bubbleIconDp(64)

        // Set the size of the remove bubble in dp
        .removeBubbleIconDp(64)

        // Set the padding of the view from the boundary
        .paddingDp(4)

        // Set the radius of the border of the expandable view
        .borderRadiusDp(4)

        // Does the bubble attract towards the walls
        .physicsEnabled(true)

        // The color of background of the layout
        .expandableColor(Color.WHITE)

        // The color of the triangular layout
        .triangleColor(Color.WHITE)

        // Horizontal gravity of the bubble when expanded
        .gravity(Gravity.END)

        // The view which is visible in the expanded view
        .expandableView(yourViewAfterClick)

        // Set the alpha value for the remove bubble icon
        .removeBubbleAlpha(0.75f)

        // Building
        .build();
  }
}

Override the onGetIntent function. It will return true if the intent is valid, else false

  @Override
  protected boolean onGetIntent(@NonNull Intent intent) {
    // your logic to get information from the intent
    return true;
  }

You can change the state of the expanded view at runtime by

// To expand
setState(true);

// To compress
setState(false);

Acknowledgements

Thanks to @Tobaloidee for the awesome logo!

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