kandi background
Explore Kits

xUtils3 | Android orm, bitmap, http, view inject...

 by   wyouflf Java Version: 3.9.0 License: Non-SPDX

 by   wyouflf Java Version: 3.9.0 License: Non-SPDX

Download this library from

kandi X-RAY | xUtils3 Summary

xUtils3 is a Java library. xUtils3 has build file available and it has medium support. However xUtils3 has 23 bugs, it has 2 vulnerabilities and it has a Non-SPDX License. You can download it from GitHub, Maven.
xUtils 包含了orm, http(s), image, view注解, 但依然很轻量级(251K), 并且特性强大, 方便扩展.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • xUtils3 has a medium active ecosystem.
  • It has 5890 star(s) with 1995 fork(s). There are 355 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 21 open issues and 680 have been closed. On average issues are closed in 351 days. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of xUtils3 is 3.9.0
xUtils3 Support
Best in #Java
Average in #Java
xUtils3 Support
Best in #Java
Average in #Java

quality kandi Quality

  • xUtils3 has 23 bugs (4 blocker, 0 critical, 11 major, 8 minor) and 710 code smells.
xUtils3 Quality
Best in #Java
Average in #Java
xUtils3 Quality
Best in #Java
Average in #Java

securitySecurity

  • xUtils3 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • xUtils3 code analysis shows 2 unresolved vulnerabilities (0 blocker, 1 critical, 1 major, 0 minor).
  • There are 6 security hotspots that need review.
xUtils3 Security
Best in #Java
Average in #Java
xUtils3 Security
Best in #Java
Average in #Java

license License

  • xUtils3 has a Non-SPDX License.
  • Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
xUtils3 License
Best in #Java
Average in #Java
xUtils3 License
Best in #Java
Average in #Java

buildReuse

  • xUtils3 releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • xUtils3 saves you 6109 person hours of effort in developing the same functionality from scratch.
  • It has 12736 lines of code, 1316 functions and 162 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
xUtils3 Reuse
Best in #Java
Average in #Java
xUtils3 Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi has reviewed xUtils3 and discovered the below as its top functions. This is intended to give you an instant insight into xUtils3 implemented functionality, and help decide if they suit your requirements.

  • Send request .
  • Start the specified tasks .
  • Binding image .
  • Append condition .
  • Decodes a bitmap from a file .
  • Registers listener for test 1 button .
  • Trim disk cache .
  • Optimize max size
  • Add event method .
  • Try to lock a file in the system .

xUtils3 Key Features

灵活的, 类似linq表达式的接口.

和greenDao一致的性能.

请求协议支持11种谓词: GET,POST,PUT,PATCH,HEAD,MOVE,COPY,DELETE,OPTIONS,TRACE,CONNECT

支持超大文件(超过2G)上传

支持断点下载(如果服务端支持Range参数,客户端自动处理断点下载)

支持cookie(实现了domain, path, expiry等特性)

支持缓存(实现了Cache-Control, Last-Modified, ETag等特性, 缓存内容过多时使用过期时间+LRU双重机制清理)

支持异步和同步(可结合RxJava使用)调用

支持内存缓存, 磁盘缓存(缩略图和原图), 并且支持回收被view持有, 但被MemCache移除的图片, 减少页面回退时的闪烁.

支持在ListView滑动时, 自动停止被回收复用的item对应的下载任务(再次下载时断点续传)

支持webp, gif(部分比较老的系统只展示静态图)

支持圆角, 圆形, 方形等裁剪, 支持自动旋转...

事件注解支持且不受混淆影响...(参考混淆配置)

支持绑定拥有多个方法的listener

xUtils3简介

copy iconCopydownload iconDownload
implementation 'org.xutils:xutils:3.9.0'

常见问题:

copy iconCopydownload iconDownload
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><!-- 可选 -->

使用@Event事件注解(@ContentView, @ViewInject等更多示例参考sample项目)

copy iconCopydownload iconDownload
/**
 * 1. 方法必须私有限定,
 * 2. 方法参数形式必须和type对应的Listener接口一致.
 * 3. 注解参数value支持数组: value={id1, id2, id3}
 * 4. 其它参数说明见{@link org.xutils.event.annotation.Event}类的说明.
 **/
@Event(value = R.id.btn_test1,
        type = View.OnClickListener.class/*可选参数, 默认是View.OnClickListener.class*/)
private void onTest1Click(View view) {
...
}

使用数据库(更多示例参考sample项目)

copy iconCopydownload iconDownload
Parent test = db.selector(Parent.class)
                    .where("id", "in", new int[]{1, 3, 6})
                    .or("age", "<", 29)
                    .findFirst();
long count = db.selector(Parent.class)
                    .where("name", "LIKE", "w%")
                    .and("age", ">", 32)
                    .count();
List<Parent> testList = db.selector(Parent.class)
                    .where("id", "between", new String[]{"1", "5"})
                    .findAll();
List<DbModel> list = db.selector(Child.class)
                    .where("age", "<", 18)
                    .groupBy("parentId")
                    .having(WhereBuilder.b("COUNT(parentId)", ">", 1))
                    .select("parentId, COUNT(parentId) as childNum")
                    .findAll();

访问网络(更多示例参考sample项目)

copy iconCopydownload iconDownload
@Event(value = R.id.btn_test2)
private void onTest2Click(View view) {
    RequestParams params = new RequestParams("https://www.baidu.com/s");
    // params.setSslSocketFactory(...); // 如果需要自定义SSL
    params.addQueryStringParameter("wd", "xUtils");
    x.http().get(params, new Callback.CommonCallback<String>() {
        @Override
        public void onSuccess(String result) {
            Toast.makeText(x.app(), result, Toast.LENGTH_LONG).show();
        }

        @Override
        public void onError(Throwable ex, boolean isOnCallback) {
            Toast.makeText(x.app(), ex.getMessage(), Toast.LENGTH_LONG).show();
        }

        @Override
        public void onCancelled(CancelledException cex) {
            Toast.makeText(x.app(), "cancelled", Toast.LENGTH_LONG).show();
        }

        @Override
        public void onFinished() {

        }
    });
}

绑定图片(更多示例参考sample项目)

copy iconCopydownload iconDownload
x.image().bind(imageView, url, imageOptions);

// assets file
x.image().bind(imageView, "assets://test.gif", imageOptions);

// resources file
x.image().bind(imageView, "res://" + R.minimap.test, imageOptions);

// local file
x.image().bind(imageView, new File("/sdcard/test.gif").toURI().toString(), imageOptions);
x.image().bind(imageView, "/sdcard/test.gif", imageOptions);
x.image().bind(imageView, "file:///sdcard/test.gif", imageOptions);
x.image().bind(imageView, "file:/sdcard/test.gif", imageOptions);

x.image().bind(imageView, url, imageOptions, new Callback.CommonCallback<Drawable>() {...});
x.image().loadDrawable(url, imageOptions, new Callback.CommonCallback<Drawable>() {...});
// 用来获取缓存文件
x.image().loadFile(url, imageOptions, new Callback.CommonCallback<File>() {...});

Community Discussions

No Community Discussions are available at this moment for xUtils3.Refer to stack overflow page for discussions.

No Community Discussions are available at this moment for xUtils3.Refer to stack overflow page for discussions.

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install xUtils3

You can download it from GitHub, Maven.
You can use xUtils3 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the xUtils3 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.