跳到主要內容

發表文章

目前顯示的是 2018的文章

EZ Crypto Privacy Policy

Privacy Policy EZWorks built the EZ Crypto app as a Free app. This SERVICE is provided by EZWorks at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at EZ Crypto unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I request will be retained on your ...

於 Kotlin 使用 Glide v4 Generated API

Glide 從 v3 升級到 v4 之後,某些設置例如 skipMemoryCache()、placeholder() 等...,必須先另外建立 RequestOptions 再 apply(),用法不像原本那麼流暢。 val options = RequestOptions() .skipMemoryCache(true) .placeholder(R.drawable.place_holder) Glide.with(this) .load(url) .apply(options) .into(ui_sparkline_7d) 不過官方也提供了一個 Generated API 的方式,讓我們可以用跟以前一樣的方式呼叫這些 API。 以下以 Kotlin 為示範: 首先添加 Glide 的依賴庫及 Annotation Processor。 dependencies { implementation 'com.github.bumptech.glide:glide:4.7.1' kapt 'com.github.bumptech.glide:compiler:4.7.1' } 為了讓 Kotlin 支援 Annotation Processor,還需於 build.gradle 加上這行。 apply plugin: 'kotlin-kapt' 接著實作一個 AppGlideModule。 import com.bumptech.glide.annotation.GlideModule import com.bumptech.glide.module.AppGlideModule @GlideModule class MyAppGlideModule : AppGlideModule() 最後把原本的 Glide.with() 改成 GlideApp.with(),就能跟之前一樣囉! GlideApp.with(this) .load(url) .skipMemoryCache(true) .placeholder(R.dr...

BatteryLevel Widget Privacy Policy

Privacy Policy EZWorks built the BatteryLevel Widge app as a Free app. This SERVICE is provided by EZWorks at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at BatteryLevel Widge unless otherwise defined in this Privacy Policy. Information Collection and Use For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information. The information that I request will be...