Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
ro.holdone:bubblegum
Advanced tools
Gradient animation library, that provides Animated drawable resources and views for enhancing user interfaces.
BubbleGum was designed to quickly apply gradients into different UI elements of an android app. The overhead and performance impact is minimal, as BubbleGum is based on Android drawables.
Or give it a try with the sample app: https://play.google.com/store/apps/details?id=com.hold1.bubblegum
Add the following line in your build.gradle file
implementation 'com.hold1:bubblegum:0.0.1'
BubbleGum can be used in 3 ways, depending of your needs:
BubbleView
into your layout and use it as a canvas for displaying other views on top of it. This is the easiest way if you are trying to achieve immediate results from your xml layout. <com.hold1.bubblegum.BubbleView
android:id="@+id/headerBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:bbStartColor="@color/demoStartColor"
app:bbEndColor="@color/demoEndColor"
app:bbAngle="45"/>
You can always change the applied gradient of a BubbleView
programatically. Please refer to SlideFragment
in Demo app.
GradientDrawable
and use it. val g1 = Gradient(intArrayOf(Color.RED, Color.GREEN))
val g2 = Gradient(intArrayOf(Color.DKGRAY, Color.BLUE))
val g3 = Gradient(intArrayOf(Color.CYAN, Color.MAGENTA))
val animation = GradientDrawable(arrayOf(g2, g1, g3))
baseView.background = animation
animation.start()
BubbleBuilder
class to apply a gradient as a background to an existing view
BubbleBuilder()
.withStartColor(Color.RED)
.withEndColor(Color.BLUE)
.withAngle(35)
.intoView(exampleView)
FAQs
Gradient animation library, that provides Animated drawable resources and views for enhancing user interfaces.
We found that ro.holdone:bubblegum demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.