{"id":366,"date":"2020-04-13T17:12:18","date_gmt":"2020-04-13T09:12:18","guid":{"rendered":"https:\/\/badgameshow.com\/fly\/?p=366"},"modified":"2020-05-19T13:17:36","modified_gmt":"2020-05-19T05:17:36","slug":"github-%e5%a5%bd%e7%94%a8%e5%88%86%e4%ba%abandroid-loadingimagesanimation","status":"publish","type":"post","link":"https:\/\/badgameshow.com\/fly\/github-%e5%a5%bd%e7%94%a8%e5%88%86%e4%ba%abandroid-loadingimagesanimation\/","title":{"rendered":"Github \u597d\u7528\u5206\u4eabAndroid LoadingImagesAnimation"},"content":{"rendered":"<h3>1.\u5148\u5c0e\u5165\u51fd\u793a\u5eab(build.gradle: Project)<\/h3>\n<pre><code class=\"language-Gradle line-numbers\">allprojects {\n   repositories {\n      maven { url 'https:\/\/jitpack.io' }\n   }\n}\n<\/code><\/pre>\n<h3>2.\u5148\u5c0e\u5165\u51fd\u793a\u5eab(build.gradle: Module)<\/h3>\n<pre><code class=\"language-Gradle line-numbers\">dependencies {\n  implementation 'com.github.Cutta:LoadingImagesAnimation:1.1'\n}\n<\/code><\/pre>\n<h3>3.values\u4e0b\u7684strings\u6dfb\u52a0Array<\/h3>\n<pre><code class=\"language-XML line-numbers\">&lt;integer-array name=\"girl\"&gt;\n    &lt;item&gt;@drawable\/b11&lt;\/item&gt;\n    &lt;item&gt;@drawable\/b12&lt;\/item&gt;\n    &lt;item&gt;@drawable\/b13&lt;\/item&gt;\n    &lt;item&gt;@drawable\/b14&lt;\/item&gt;\n&lt;\/integer-array&gt;\n<\/code><\/pre>\n<h3>4.XML<\/h3>\n<pre><code class=\"language-XML line-numbers\">&lt;com.cunoraz.loadingimages.LoadingImagesView\n      android:layout_width=\"wrap_content\"\n      android:layout_height=\"wrap_content\"\n      app:imagesArray=\"@array\/girl\"   \/\/\u8981\u64a5\u653e\u7684array\n      app:layout_constraintBottom_toBottomOf=\"parent\"\n      app:layout_constraintEnd_toEndOf=\"parent\"\n      app:layout_constraintStart_toStartOf=\"parent\"\n      app:layout_constraintTop_toTopOf=\"parent\" \/&gt;\n<\/code><\/pre>\n<h3>5.\u6548\u679c\u5c55\u73fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/badgameshow.com\/fly\/wp-content\/uploads\/2020\/04\/15.gif\" alt=\"\" \/><\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>1.\u5148\u5c0e\u5165\u51fd\u793a\u5eab(build.gradle: Project) allprojects { repositor &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[57],"tags":[56,14,62],"class_list":["post-366","post","type-post","status-publish","format-standard","hentry","category-github","tag-github","tag-java","tag-loadingimagesanimation"],"_links":{"self":[{"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/posts\/366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/comments?post=366"}],"version-history":[{"count":4,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/posts\/366\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/posts\/366\/revisions\/443"}],"wp:attachment":[{"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/media?parent=366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/categories?post=366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/tags?post=366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}