Git Product home page Git Product logo

android-mvvmcomponent-app's People

Contributors

darryrzhong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-mvvmcomponent-app's Issues

MVVM架构

我感觉你这个怎么有点mvp的意思,照理说mvvm不是应该view和viewModel解耦的吗,你怎么又把它耦合在一起

点击不同的卡片播放同一个视频

先进入APP点击一个卡片进入播放页,在播放页下面点击不同的播放卡片 ,点击之后推出当前播放页,在首页点击不同卡片会播放同一个视频。

Execution failed for JetifyTransform:

FAILURE: Build completed with 23 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:dataBindingMergeDependencyArtifactsDebug'.

Could not resolve all files for configuration ':module-main:debugCompileClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-databinding}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:dataBindingMergeGenClassesDebug'.

Could not resolve all files for configuration ':module-main:debugCompileClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-databinding-class-log}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

3: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:generateDebugRFile'.

Could not resolve all files for configuration ':module-main:debugCompileClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-symbol-with-package-name}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

4: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugResources'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-res}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

5: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-manifest}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

6: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugAssets'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-assets}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

7: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-classes, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

8: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:desugarDebugFileDependencies'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=processed-jar}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

9: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugAndroidTestAssets'.

Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-assets}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

10: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAndroidTestDuplicateClasses'.

Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-classes, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

11: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:desugarDebugAndroidTestFileDependencies'.

Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=processed-jar}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

12: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-base:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

13: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-base:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

14: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-common:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

15: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-common:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

16: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-network:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

17: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-network:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

18: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-video:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

19: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-video:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

20: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:processDebugAndroidTestManifest'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-manifest}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

21: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:mergeDebugAndroidTestAssets'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-assets}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

22: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:checkDebugAndroidTestDuplicateClasses'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-classes, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

23: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:desugarDebugAndroidTestFileDependencies'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=processed-jar}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

  • Get more help at https://help.gradle.org

BUILD FAILED in 2m 27s
666 actionable tasks: 646 executed, 20 up-to-date

构建失败,不知道什么原因

运行一下午了还是不行

刚开始报The binary version of its metadata is 1.5.1, expected version is 1.1.16
我把kotlin改成1.5以后又报
No version of NDK matched the requested version 20.0.5594570. Versions available locally: 16.1.4479499

SmartRefreshLayout加载数据问题

我按的SmartRefreshLayout方式加载数据,showLoading();调用就会崩溃,LoadingCallback.class空指针,我找不到初始化的位置,还有就是加载数据采用Provider这个是有两种情况,第一种是数据显示不全
数据显示不全
; 第二种情况是加载完数据并显示成,但是我切换底部的菜单(模块)比如我从当前的消息界面切换到发现界面,或者其他界面后,再进入消息界面就无法显示数据。
成功显示数据
数据显示不全

请问大神我应该如何做呢?

多个请求的问题

看到项目里面一个页面都是一个请求,如果一个activity里面有多个请求,应该怎么处理?

进入直接OOM了

Process: com.mvvm.mvvmcomponent, PID: 31392
java.lang.OutOfMemoryError: Failed to allocate a 24037772 byte allocation with 16777216 free bytes and 19MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2650)
at android.content.res.Resources.loadDrawable(Resources.java:2555)
at android.content.res.Resources.getDrawable(Resources.java:814)
at android.content.res.XResources.getDrawable(XResources.java:790)
at android.content.Context.getDrawable(Context.java:458)
at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:455)
at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:144)
at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:132)
at androidx.appcompat.content.res.AppCompatResources.getDrawable(AppCompatResources.java:104)
at androidx.appcompat.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:86)
at androidx.appcompat.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:94)
at com.drz.main.viewholder.CustomPageViewHolder.onBind(CustomPageViewHolder.java:32)
at com.drz.main.viewholder.CustomPageViewHolder.onBind(CustomPageViewHolder.java:20)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.createView(BannerPagerAdapter.java:92)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.getView(BannerPagerAdapter.java:84)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.instantiateItem(BannerPagerAdapter.java:56)
at androidx.viewpager.widget.ViewPager.addNewItem(ViewPager.java:1010)
at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1224)
at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1092)
at androidx.viewpager.widget.ViewPager$3.run(ViewPager.java:273)

列表图片加载内存一直增加

@BindingAdapter使用,在列表中会存在内存一直增加,大佬这个是什么原因造成的呢,是不是因为@BindingAdapter对应的方法是静态的导致的。
@BindingAdapter("imageUrl")
public static void loadImage(ImageView imageView, String url) {
if (!TextUtils.isEmpty(url)) {
Glide.with(imageView.getContext())
.load(url)
.apply(RequestOptions.bitmapTransform(new RoundedCorners(40)))
.into(imageView);
}
}

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.