Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akshay2211/Ariana
Provide Multiple Gradients in ImageViews and Texts. Integrate with ViewPager to change colors dynamically.
https://github.com/akshay2211/Ariana
drawable gradients imageview textview viewpager
Last synced: 3 months ago
JSON representation
Provide Multiple Gradients in ImageViews and Texts. Integrate with ViewPager to change colors dynamically.
- Host: GitHub
- URL: https://github.com/akshay2211/Ariana
- Owner: akshay2211
- License: apache-2.0
- Created: 2017-09-23T07:17:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T18:18:45.000Z (over 2 years ago)
- Last Synced: 2024-04-13T21:54:52.408Z (7 months ago)
- Topics: drawable, gradients, imageview, textview, viewpager
- Language: Java
- Homepage:
- Size: 3.45 MB
- Stars: 79
- Watchers: 6
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gradient - Ariana - Provide Multiple Gradients in ImageViews and Texts. Integrate with ViewPager to change colors dynamically. (Java)
README
Ariana [obsolete]
=======Provide Multiple Gradients in ImageViews and Texts
Demo
----![](media/web_256.png)
![](media/media.gif)
![](media/one.png)
![](media/two.png)
![](media/three.png)Usage
-----
set Gradient background ImageView```java
imageView.setBackground(Ariana.drawable(Utils.getColors()),GradientAngle.LEFT_BOTTOM_TO_RIGHT_TOP);
```
set Gradient background for TextView```java
Ariana.setGradient(textView,Utils.getColors(),GradientAngle.LEFT_BOTTOM_TO_RIGHT_TOP);
```
add listener to ViewPager for background ImageView```java
viewPager.addOnPageChangeListener(new ArianaBackgroundListener(Utils.getColors(), imageView, viewPager));
```
add listener to ViewPager for TextView```java
viewPager.addOnPageChangeListener(new ArianaTextListener(Utils.getColors(), textView, viewPager));
```
Download
--------Grab via Gradle:
```groovy
compile 'com.fxn769:ariana:1.0'
```or Maven:
```xmlcom.fxn769
ariana
1.0
pom```
or ivy:
```xml
```
## License
Licensed under the Apache License, Version 2.0, [click here for the full license](/LICENSE.txt).## Author & support
This project was created by [Akshay Sharma](https://akshay2211.github.io/).> If you appreciate my work, consider buying me a cup of :coffee: to keep me recharged :metal: by [PayPal](https://www.paypal.me/akshay2211)
> I love using my work and I'm available for contract work. Freelancing helps to maintain and keep [my open source projects](https://github.com/akshay2211/) up to date!
[![forthebadge](http://forthebadge.com/images/badges/built-for-android.svg)](http://forthebadge.com)