implementation 'com.qcloud.cos:tpg:1.3.2'
build.gradle file to set the .so library frameworks that are supported.defaultConfig {ndk {// Set the .so library frameworks that are supportedabiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'}}
implementation 'com.qcloud.cos:cloud-infinite:1.2.1'
// Instantiate `CloudInfinite` to build an image request link;CloudInfinite cloudInfinite = new CloudInfinite();// Perform transformation according to the basic feature options of CI you select;CITransformation transform = new CITransformation();transform.format(CIImageFormat.TPG, CIImageLoadOptions.LoadTypeUrlFooter);// Build the image `CIImageLoadRequest`CIImageLoadRequest request = cloudInfinite.requestWithBaseUrlSync(url, transform);
// Load TPG images in `Assets`TpgImageLoader.displayWithAssets(imageview, assetsName);// Load TPG images in `Resource`TpgImageLoader.displayWithResource(imageview, R.drawable.tpg);// Load TPG images in local filesTpgImageLoader.displayWithFileUri(imageview, fileUri);
Feedback