原创 看完你就瞭解了-Android事件分發機制

前言 懵懵懂懂搞了幾年安卓,對於事件分發這一塊,總是感覺沒有完全理解清楚。看了很多技術文章,自信感覺已經差不多了,然後一到面試,感覺總是說不出來。然後換了一套方式來理解,然後發現,事件分發也就是那麼回事。 舉例理解 舉一個例子來說明,某天

原创 Android Studio 3.6 忽略文件配置

前幾天更新了3.6,然後進行代碼管理,發現3.6找不到Ignore File了,然後操作如下。   File ->setting->editor->File Types   ps:也用過這種方式(但是沒起作用,希望有大佬給解答一下) ap

原创 使用Kotlin實現文字漸變TextView

實現效果: 實現代碼: import android.content.Context import android.graphics.* import android.support.annotation.ColorInt impo

原创 An operation is not implemented: not implemented問題

學習了Kotlin,着手將現有代碼轉換成爲Kotlin,然後: 然後發現是代碼裏面有一行:  TODO("not implemented")  刪掉就好了。。

原创 does not have a companion object, and thus must be initialized here

初學Kolin,編譯然後報錯,記錄一下這個問題。    修改如下: