siddharth2010 / Bubbles
Licence: mit
β‘οΈA library for adding messenger style floating bubbles to any android application π²
Stars: β 66
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
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 |
---|---|---|---|
Package Structure of the Library
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].