原创 怎麼獲取navigationbar 的高度
Resources resources = activity.getResources(); int resourceId = resources.getIdentifier("navigation_bar_height", "dimen
原创 RoundCornnerTextView
public class RoundCornerTextView extends TextView { public RoundCornerTextView(Context context) { super(co
原创 日誌工具
平時用到日誌的地方不多,這裏舉兩個例子。 https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor 方便打印請求日誌。 OkHtt
原创 ActivityStack 詳解
http://android.xsoftlab.net/guide/components/tasks-and-back-stack.html 我花了不少時間看了些,資料和書籍。 結論是吊用沒有啊,我看到的術語有 TaskStack Ac
原创 DrawableContainer
和 DrawableWrapper 一樣,DrawableContainer 也是一個容器。 它內部保存了 mDrawables ,然後在適當的時候切換它們。 @Override public void draw(Canv