Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/percolate/caffeine
Speed up your Android development
https://github.com/percolate/caffeine
Last synced: 5 days ago
JSON representation
Speed up your Android development
- Host: GitHub
- URL: https://github.com/percolate/caffeine
- Owner: percolate
- License: bsd-3-clause
- Created: 2014-09-30T19:09:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-14T14:28:06.000Z (over 7 years ago)
- Last Synced: 2024-08-16T15:39:31.817Z (4 months ago)
- Language: Java
- Size: 355 KB
- Stars: 413
- Watchers: 89
- Forks: 39
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-android - Caffeine - A collection of utility classes that help make Android development faster. (Libraries / Other)
- awesome-android-libraries - caffeine
- awesome-android - Caffeine - A collection of utility classes that help make Android development faster. (Libraries / Other)
- awesome-android-cn - 官网
README
# Caffeine
#### _Speed up your Android development!_[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Caffeine-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1055)
[![Codacy](https://api.codacy.com/project/badge/Grade/7051075a25b548699c642b39f666580f)](https://www.codacy.com/app/brent/caffeine?utm_source=github.com&utm_medium=referral&utm_content=percolate/caffeine&utm_campaign=Badge_Grade)
[![JitPack](https://jitpack.io/v/percolate/caffeine.svg)](https://jitpack.io/#percolate/caffeine)A collection of utility classes that help make Android development faster (and safer!)
## Examples
No more unsafe type casting scattered throughout your code:
```java
TextView x = ViewUtils.findViewById(this, R.id.my_text)
ImageView y = ViewUtils.findViewById(this, R.id.my_image)
LinearLayout z = ViewUtils.findViewById(this, R.id.my_layout)
```Some handy 1-liners:
```java
ActivityUtils.launchActivity(this, SomeNewActivity.class);
DialogUtils.quickDialog(this, "Some awesome message");
ToastUtils.quickToast(this, "Some toast message");
```[And much more!](http://percolate.github.io/caffeine/javadoc/)
## Adding to your application
Simply add Caffeine as a gradle dependency. Distribution is done through jitpack.io.
See https://jitpack.io/#percolate/caffeine for instructions
[![](https://jitpack.io/v/percolate/caffeine.svg)](https://jitpack.io/#percolate/caffeine)
## Running Tests
`./gradlew clean test:connectedAndroidTest`
## License
Open source. Distributed under the BSD 3 license. See [LICENSE.txt](https://github.com/percolate/caffeine/blob/master/LICENSE.txt) for details.