原创 retrofit網絡請求框架
文章來自Retrofit20使用詳解 直接請求JOSN 通過依賴retrofit-converter-gson直接返回實體類 文章來自Retrofit2.0使用詳解 android studio可引用gradle c
原创 animation在手機上直角座標系,即動畫移動的軸
以下是一個進入Activity的動畫 overridePendingTransition(R.anim.slide_in_right,R.anim.slide_in_left); slide_in_left.xml <?xml
原创 ListView The content of the adapter has changed but ListView did not receive a notification.
10-10 04:25:59.813: E/AndroidRuntime(5300): java.lang.IllegalStateException: The content of the adapter has ch
原创 android獲取位置數據
代碼: package com.tc.gps; import java.util.List; import android.app.Activity; import android.content.Context; impor
原创 如何在github創建個人主頁?
文章來自於hifor的博客 如何在github創建個人主頁? 如何在github創建個人主頁? git和node.js的安裝就不解釋了 申請github賬號(是程序員應該都有一個吧,不解釋) 創建github倉庫 安裝hexo
原创 PagerAdapter適配有條目,但是空白?
其實關鍵點還是在這個方法,這是pagerAdapter裏的方法,用於判斷兩個對象是否相等,我對viewpager的實現原理是這麼理解的:先初始化後——再去獲取——判斷是否初始化的對象與獲取到的對象是否一樣;當然判斷不一樣就不會顯示
原创 android 報自定義的application無法強制轉換成application問題細節解決
android.app.Application cannot be cast to com.tc.dragger2mystudyproject.APPApplication 我在項目中定義了一個AppApplication繼承自A