简体   繁体   English

我怎样才能像谷歌加载器一样创建点加载视图?

[英]How can i create dots loading view like as google loader?

I want to create custom dots loader like as google dots loader(below image).我想创建自定义点加载器,如谷歌点加载器(下图)。 I founded following library but it written in Kotlin language, I want exactly this loader view in java language.我创建了以下库,但它是用 Kotlin 语言编写的,我想要这个 Java 语言的加载器视图。 Someone can help me?有人可以帮助我吗? Thanks.谢谢。 CirclesLoadingView CirclesLoadingView 点加载视图

Use Glide library to load any gif image to image view使用 Glide 库将任何 gif 图像加载到图像视图

https://github.com/bumptech/glide https://github.com/bumptech/glide

As mentioned in the comment to the question, you can simply include the library in your project as follows:如问题评论中所述,您可以简单地将库包含在您的项目中,如下所示:

In app build.gradle:在应用程序 build.gradle 中:

implementation 'com.github.ibrahimsn98:CirclesLoadingView:1.0'

In root build.gradle (or settings.gradle if you define repositories there):在根 build.gradle(或 settings.gradle,如果您在那里定义存储库):

repositories {
    maven { url 'https://jitpack.io' }
}

And finally, in the desired XML layout:最后,在所需的 XML 布局中:

<me.ibrahimsn.lib.CirclesLoadingView
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

I tried this in a pure Java project and it works without any additions.我在一个纯 Java 项目中尝试了这个,它没有任何添加就可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM