Coder Social home page Coder Social logo

lerist / pearl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanuor/pearl

0.0 3.0 0.0 843 KB

A powerful (super fast) image loading, and memory caching library for android. With Pearl you can also save Json String and retrieve it later on if you want to display data in your app while the smartphone is in offline mode.

License: Apache License 2.0

Java 100.00%

pearl's Introduction

Android Arsenal
#Pearl

Pearl is a powerful image caching and loading library. Developers can even save JSON data in the form of objects and can retrieve them later on if they want to display content in offline mode.
Pearl uses concepts of Google's volley project and some of it's own image optimization algorithms to display the most vibrant and pixel rich image. It's light, cleaner and is maintained by the open source community itself.

#Download
###Using Gradle: under dependencies section:

compile 'com.github.hanuor:pearl:0.0.8'    

or Using Maven:

<dependency>
<groupId>com.github.hanuor</groupId>
<artifactId>pearl</artifactId>
<version>0.0.8</version>
<type>pom</type>
</dependency>

#Documentation

###Loading an Image For now a premium fade in animation has been integrated into the library. Images will be displayed through fade in animation.

 Pearl.imageLoader(Context mContext,String URLofImage,ImageView imageView,int defaultImage);  

where
mcontext = Context of the activity/fragment
URLofImage = Url of image to be downloaded from web
imageView = Target ImageView

###Saving a Json object

Pearl.saveJsonObject(Context context, String jsonObject,String tag);     

You have to convert Json object into a String first.

###Retrieving a Json String

Object retrieve = Pearl.retrieveJsonObject(String tag);     
String retString = retrieve.toString();     

###Cancel an image load

Pearl.cancelImageLoad(String urlofImage)    

###Compatibility

Minimum Android SDK: Pearl requires a minimum API level of 10.


###Special thanks to:

Google's volley for android
Apache httpcore.jar
Apache httpclient.jar
Rohan Dikshit (Website)
Shantanu Johri (Android)


###How it looks like?
Pearl demo app


###License Copyright 2016 Hanuor, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

pearl's People

Contributors

hanuor avatar

Watchers

James Cloos avatar Lerist avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.