xUtils includes orm, http(s), image, view annotations, but it is still very lightweight (251K), and has powerful features and is easy to expand. Efficient and stable orm tool, which makes it more convenient to support cookies and caching when the http interface is implemented. Based on UrlConnection, the bottom layer will be implemented by okHttp after Android4.4. The request protocol supports 11 predicates: GET, POST, PUT, PATCH, HEAD, MOVE, COPY, DELETE, OPTIONS, TRACE, CONNECT. Supports uploading of very large files (over 2G). Support breakpoint download (if the server supports the Range parameter, the client automatically handles the breakpoint download). Support cookies (implements domain, path, expiry and other features). Support caching (implement Cache-Control, Last-Modified, ETag and other features, use expiration time + LRU dual mechanism to clean up when the cache content is too much).
Features
- Flexible, similar to linq expression interface
- Consistent performance with greenDao
- Event annotations are supported and not affected by obfuscation
- Support binding listeners with multiple methods
- Supports memory caching, disk caching
- Support webp, gif (some older systems only display static images)