A collection of utility classes that help make Android development faster (and safer!)
No more unsafe type casting scattered throughout your code:
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:
ActivityUtils.launchActivity(this, SomeNewActivity.class);
DialogUtils.quickDialog(this, "Some awesome message");
ToastUtils.quickToast(this, "Some toast message");
-
As a .jar file
-
Using gradle
compile 'com.percolate:caffeine:0.3.3'
- Using Maven
<dependency>
<groupId>com.percolate</groupId>
<artifactId>caffeine</artifactId>
<version>0.3.3</version>
</dependency>
Open source. Distributed under the BSD 3 license. See license.txt for details.