{"id":527,"date":"2020-05-26T16:54:04","date_gmt":"2020-05-26T08:54:04","guid":{"rendered":"https:\/\/badgameshow.com\/fly\/?p=527"},"modified":"2020-07-07T11:56:32","modified_gmt":"2020-07-07T03:56:32","slug":"github-%e5%a5%bd%e7%94%a8%e5%88%86%e4%ba%abandroid-pulsecountdownview%e6%95%b8%e5%ad%97%e5%80%92%e6%95%b8","status":"publish","type":"post","link":"https:\/\/badgameshow.com\/fly\/github-%e5%a5%bd%e7%94%a8%e5%88%86%e4%ba%abandroid-pulsecountdownview%e6%95%b8%e5%ad%97%e5%80%92%e6%95%b8\/","title":{"rendered":"Github \u597d\u7528\u5206\u4eabAndroid PulseCountDownView(\u6578\u5b57\u5012\u6578)"},"content":{"rendered":"<h3>1.\u5148\u5c0e\u5165\u51fd\u793a\u5eab(build.gradle: Module)<\/h3>\n<pre><code class=\"language-Gradle line-numbers\">dependencies {\n   implementation 'com.github.dhaval2404:colorpicker:1.1'\n}\n<\/code><\/pre>\n<h3>2.\u7a0b\u5f0f\u78bc\u7bc4\u4f8b<\/h3>\n<h4>a.layout\u8072\u660ecom.gusakov.library.PulseCountDown<\/h4>\n<pre><code class=\"language-XML line-numbers\"> &lt;com.gusakov.library.PulseCountDown\n        android:id=\"@+id\/pulseCountDown\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginTop=\"150dp\"\n        android:textColor=\"#ff00ff\"\n        android:textSize=\"100sp\"\n        android:text=\"10\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:pc_endValue=\"0\"  \/\/\u6700\u5f8c\n        app:pc_startValue=\"10\" \/\/\u958b\u59cb \/&gt;\n<\/code><\/pre>\n<h4>b.\u8abf\u7528start\u57f7\u884c<\/h4>\n<pre><code class=\"language-Kotlin line-numbers\">pulseCountDown.start {\n    Toast.makeText(this, \"Bammmm!!!\", Toast.LENGTH_LONG).show()\n}\n<\/code><\/pre>\n<h3>4.\u6548\u679c\u5c55\u793a<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/badgameshow.com\/fly\/wp-content\/uploads\/2020\/05\/video-1590483175.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: Module) dependencies { implement &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,15,77],"class_list":["post-527","post","type-post","status-publish","format-standard","hentry","category-github","tag-github","tag-kotlin","tag-pulsecountdownview"],"_links":{"self":[{"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/posts\/527","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=527"}],"version-history":[{"count":2,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":579,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/posts\/527\/revisions\/579"}],"wp:attachment":[{"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/media?parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/categories?post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/badgameshow.com\/fly\/wp-json\/wp\/v2\/tags?post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}