Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/developer-shivam/Crescento
Add curve at bottom of image views and relative layouts.
https://github.com/developer-shivam/Crescento
appcompat-support curve customview imageview
Last synced: 15 days ago
JSON representation
Add curve at bottom of image views and relative layouts.
- Host: GitHub
- URL: https://github.com/developer-shivam/Crescento
- Owner: developer-shivam
- License: mit
- Created: 2016-11-17T12:08:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T11:39:26.000Z (about 6 years ago)
- Last Synced: 2024-10-15T10:21:05.213Z (24 days ago)
- Topics: appcompat-support, curve, customview, imageview
- Language: Java
- Homepage:
- Size: 22.8 MB
- Stars: 1,277
- Watchers: 25
- Forks: 156
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - Crescento - 图像视图和相关布局的下面添加曲线 (其他)
README
Crescento
=========Android library that adds a curve at the below of image views and relative layouts. **CrescentoImageView** and **CrescentoContainer** are the image view and relative layout respectively. You can change the radius of curve with **attribute:curvature**.
[![API](https://img.shields.io/badge/API-11%2B-red.svg)](https://android-arsenal.com/api?level=11)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Crescento-green.svg?style=true)](https://android-arsenal.com/details/1/4684)
[![Android Weekly](https://img.shields.io/badge/Android%20Weekly-%23232-blue.svg)](http://androidweekly.net/issues/issue-232)
[![AndroidDev Digest](https://img.shields.io/badge/AndroidDev%20Digest-%23119-yellow.svg)](https://www.androiddevdigest.com/digest-119/)![Sample Image 2][SampleOneNexus]
Overview
--------**Crescento** provides following advantages:
* **Curve Bottom**: It adds a curve bottom as stated above.
* **Tint**: It add tint on **CrescentoImageView** by using **attribute:tintColor**. It pick color automatically from the image if **tintMode** is set to **automatic**.
* **Alpha**: Add transparency in tint by using **attribute:tintAlpha**. Varies from 0 to 255.
* **Gradient** : Add gradient on the imageview.
* **Gravity** : You can now add crescento to bottom of your layout. Arc will form on top.**[Sample Apk]**
Use with **[KenBurnsView]**
---------------------------------------![Sample Image 1][GifSample]
```java
```
Donations
---------This project needs you! If you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!
**PayPal**
* **[Donate $5]**: Thank's for creating this project, here's a coffee (or some beer) for you!
* **[Donate $10]**: Wow, I am stunned. Let me take you to the movies!
* **[Donate $15]**: I really appreciate your work, let's grab some lunch!
* **[Donate $25]**: That's some awesome stuff you did right there, dinner is on me!
* **[Donate $50]**: I really really want to support this project, great job!
* **[Donate $100]**: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
* **[Donate $2799]**: Go buddy, buy Macbook Pro for yourself!
Of course, you can also choose what you want to donate, all donations are awesome!Demo
----Here is a very good example of how to use `Crescento`. **Zsolt Szilvai** has made a very good design and I've illustrated using crescento.
https://material.uplabs.com/posts/cinema-application-interface
![Sample of Zsolt Szilvai's design][SampleTwo]
Gradle Integration
------------------If you are using gradle then add these lines in build.gradle file at project level.
```java
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```Add below lines in build.gradle at app level.
```java
compile 'com.github.developer-shivam:Crescento:1.2.1'
```Basic Usage
-----------*For a working implementation, see `/app` folder*
**ImageView**
```xml
```
**Container**
```xml
```
Attributes
----------* **curvature**: To change the size of curve.
* **curvatureDirection** : To change the direction of curvature. Whether **inward** or **outward**.
* **tintColor**: To add tint on image view.
* **tintMode**: To add tint **manually** or **automatically**. If **automatically** it will pick color from image you have set.
* **tintAlpha**: To set the amount of tint. 0 for 100% transparent and 255 for opaque.
* **gradientDirection** : To set the direction of gradient. Supported direction are **TOP_TO_BOTTOM**, **BOTTOM_TO_TOP**, **LEFT_TO_RIGHT** and **RIGHT_TO_LEFT**.
* **gradientStartColor** : gradient start color.
* **gradientEndColor** : gradient end color.
* **gravity** : To set gravity. **TOP** or **BOTTOM**.
Connect With Me
-----------Shivam Satija (droidsergeant)
Question / Contact Me / Hire Me
---------------------
Please feel free to ping me at **[email protected]**. Expected package would be **6 lpa**.License
-------```
MIT LicenseCopyright (c) 2016 Shivam Satija
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```[Facebook]: /art/fb.png
[Google+]: /art/gplus.png
[LinkedIn]: /art/linkedin.png
[SampleOne]: /art/sample1_resize.png
[SampleTwo]: /art/sample2.png
[SampleOneNexus]: /art/sample_image.jpg
[GifSample]: /art/sample2.gif
[GifSample2]: /art/sample3.gif
[Donate $5]: https://www.paypal.me/developerShivam/5
[Donate $10]: https://www.paypal.me/developerShivam/10
[Donate $15]: https://www.paypal.me/developerShivam/15
[Donate $25]: https://www.paypal.me/developerShivam/25
[Donate $50]: https://www.paypal.me/developerShivam/50
[Donate $100]: https://www.paypal.me/developerShivam/100
[Donate $2799]: https://www.paypal.me/developerShivam/2799
[Sample Apk]: https://github.com/developer-shivam/crescento/blob/master/demo.apk
[KenBurnsView]: https://github.com/flavioarfaria/KenBurnsView