vangeldu / Gradientbutton
A Button that supports gradient ramp for background, the Angle of the circular, shadow. You can also customize it use hardcode.(支持渐变色背景、带阴影、可设置圆角的按钮)
Stars: ✭ 19
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Gradientbutton
Webgradients
A curated collection of splendid gradients made in CSS3, .sketch and .PSD formats.
Stars: ✭ 2,197 (+11463.16%)
Mutual labels: background, gradient
Hero Generator
🦸🏻♀️Hero Generator! Create a nice hero image for your site or app
Stars: ✭ 549 (+2789.47%)
Mutual labels: background, gradient
Xamarin.forms.backgroundkit
🔨 A powerful Kit for customizing the background of Xamarin.Forms views
Stars: ✭ 167 (+778.95%)
Mutual labels: background, gradient
ngx-animated-gradient
Angular Directive that animates the gradient background
Stars: ✭ 16 (-15.79%)
Mutual labels: background, gradient
Pytorch Cnn Visualizations
Pytorch implementation of convolutional neural network visualization techniques
Stars: ✭ 6,167 (+32357.89%)
Mutual labels: gradient
Gradient String
🌈 Beautiful color gradients in terminal output
Stars: ✭ 476 (+2405.26%)
Mutual labels: gradient
Enzyme
High-performance automatic differentiation of LLVM.
Stars: ✭ 418 (+2100%)
Mutual labels: gradient
Ycdownloadsession
iOS background download video or file lib
Stars: ✭ 410 (+2057.89%)
Mutual labels: background
Update Background Locations
A sample iOs example that tracks background locations.
Stars: ✭ 7 (-63.16%)
Mutual labels: background
Complimentarygradientview
Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js
Stars: ✭ 691 (+3536.84%)
Mutual labels: gradient
Gradientloadingbar
⌛️A customizable animated gradient loading bar.
Stars: ✭ 569 (+2894.74%)
Mutual labels: gradient
Thlabel
UILabel subclass, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.
Stars: ✭ 636 (+3247.37%)
Mutual labels: gradient
Chromatic Sketch
Sketch plugin for creating good-looking and perceptually uniform gradients and color scales.
Stars: ✭ 445 (+2242.11%)
Mutual labels: gradient
Flowing Gradient
Android Library to make a flowing gradient effect, similar to that used in Instagram Android login screen
Stars: ✭ 701 (+3589.47%)
Mutual labels: gradient
Flutter workmanager
A Flutter plugin which allows you to execute code in the background on Android and iOS.
Stars: ✭ 417 (+2094.74%)
Mutual labels: background
Honeydew
Job Queue for Elixir. Clustered or Local. Straight BEAM. Optional Ecto. 💪🍈
Stars: ✭ 670 (+3426.32%)
Mutual labels: background
Contourview
🦄 利用本库绘制出贝塞尔曲线魔炫背景。Customize view:Draw the magic dazzle background with Bézier.
Stars: ✭ 542 (+2752.63%)
Mutual labels: background
Cordova Background Geolocation Lt
The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
Stars: ✭ 600 (+3057.89%)
Mutual labels: background
GradientButton
A Button that supports gradient ramp for background, the Angle of the circular, shadow. You can also customize it use hardcode.
Preview
Getting Started
In your build.gradle:
dependencies {
compile 'com.dagang:gradient-button:1.0.1'
}
Usage
<com.dagang.library.GradientButton
android:layout_width="200dp"
android:layout_height="80dp"
app:button_end_color="#EEA9B8"
app:button_gradient_orientation="LEFT_RIGHT"
app:button_is_shadowed="true"
app:button_press_end_color="#EEE5DE"
app:button_press_start_color="#EEA9B8"
app:button_radius="30dp"
app:button_shadow_angle="90"
app:button_shadow_color="#EE799F"
app:button_shadow_distance="5dp"
app:button_shadow_radius="10dp"
app:button_size="10sp"
app:button_start_color="#EEE5DE"
app:button_text="Rich Button"
app:button_text_color="#9F79EE" />
or use java code
GradientButton gradientButton = (GradientButton) findViewById(R.id.magic_button);
TextView textView = gradientButton.getButton();
textView.setText("Custom Button");
textView.setTextColor(Color.BLUE);
gradientButton.setButtonRadius(20);
gradientButton.setShadowRadius(10);
gradientButton.setShadowColor(Color.RED);
gradientButton.setButtonStartColor(Color.parseColor("#EEE5DE"));
gradientButton.setButtonEndColor(Color.parseColor("#9370DB"));
gradientButton.setButtonPressStartColor(Color.BLACK);
gradientButton.setButtonPressEndColor(Color.BLACK);
gradientButton.setButtonGradientOrientation(GradientButton.LEFT_RIGHT);
gradientButton.getButton().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(MainActivity.this, "onClick", Toast.LENGTH_LONG).show();
}
});
Thanks
Contact me
Email: [email protected]
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].