原创 iOS點擊Button界面跳轉

iOS點擊Button界面跳轉 Model RegisterEnterPasswordViewController *next = [[RegisterEnterPasswordViewController alloc] init

原创 Parcel: unable to marshal value

在兩個Activity之間傳遞一個List<AAAClass>數據的時候需要使用ArrayList<AAAClass>(ArrayList implements Serializable),同時傳遞的AAAClass也需要實現Serial

原创 Android實現一行有好幾個TextView 第一個TextView使用省略

參考:https://blog.csdn.net/duanmulirui/article/details/52458485 在項目中要求實現如下圖效果: 左側一個名字,右側文字和圖片是固定的,整體佈局水平居中,兩個TextView都

原创 Google Analytics打點

GA打點請參考文檔:https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide GA打點url: https://www.google

原创 Android dependencies

本文摘自:Android自動化測試工具 UiAutomator使用詳解 在dependencies中用到了compile、testCompile、androidTestCompile、Provided、APK、Debug compile

原创 Android Activity和Fragment生命週期

轉自:https://github.com/CharonChui/AndroidNote/blob/master/BasicKnowledge/Fragment%E4%B8%93%E9%A2%98.md

原创 ViewPager使用wrap_content不能顯示

在使用ViewPager的時候由於高度是自適應的,所以高度使用了wrap_content,但是一直顯示不了,最後發現不能使用wrap_content。在網上找了之後自定義ViewPager可解決。代碼如下: public class Wr

原创 ANDROID樣式的開發:PROPERTY ANIMATION篇

轉自:Keegan小鋼 http://keeganlee.me/post/android/20151026 Android樣式的開發:shape篇 Android樣式的開發:selector篇 Android樣式的開發:layer-

原创 Android點擊EditText之外的地方隱藏軟鍵盤同時使EditText失去焦點

參考:http://www.jianshu.com/p/5aecf79025a4 1.只是隱藏軟鍵盤: @Override public boolean dispatchTouchEvent(MotionEvent ev) {

原创 Android不透明度16進制值

轉自:Android不透明度16進制值 100% — FF 95% — F2 90% — E6 85% — D9 80% — CC 75% — BF 70% — B3 65% — A6 60% — 99 55% — 8C 50% — 8

原创 Android - java.lang.IndexOutOfBoundsException: Invalid item position 0(0). Item count:0

轉自:https://stackoverflow.com/questions/36933787/android-java-lang-indexoutofboundsexception-invalid-item-position-00-it

原创 Android Theme 主題裏的幾個設計顏色的屬性

Android Theme 主題裏的幾個設計顏色的屬性:

原创 Android O 應用圖標適配

最近新開了 一個項目 targetSdkVersion = 26,在Pixel上測試的時候發現App的圖標和設計的完全不一樣,有一個很大的外邊框,後來發現是Android O修改了App圖標方案。於是乎,開幹適配AndroidO圖標。 首

原创 ANDROID樣式的開發:VIEW ANIMATION篇

轉自:Keegan小鋼 http://keeganlee.me/post/android/20151003 Android樣式的開發:shape篇 Android樣式的開發:selector篇 Android樣式的開發:layer-

原创 如何獲取Android RecyclerView滑動的距離

轉自:https://www.jianshu.com/p/5f876361e671 如何獲取 RecyclerView 的滑動距離? 注意,這裏所說的是RecyclerView item都相同的情況. RecyclerView 雖然有ge