原创 安卓原生自帶的日期選擇器DatePickerDialog、時間選擇器TimePickerDialog使用方法

安卓原生自帶的日期選擇器DatePickerDialog、時間選擇器TimePickerDialog使用方法 XML佈局如下圖: 代碼實現如下: public class MainActivity extends AppComp

原创 adapter.notify()、notifyAll()、notifyDataSetChanged ()、notifyDataSetInvalidated ()的區別

adapter.notify()、notifyAll()、notifyDataSetChanged ()、notifyDataSetInvalidated ()的區別 notify()和notifyAll()一般用於喚醒被鎖或等待中ad

原创 Android Studio編譯出現null value in entry :incrementalFolder問題解決方法

Android Studio編譯出現null value in entry :incrementalFolder問題解決方法 解決方法: 中文: 在AS項目的根目錄下刪除".gradle"文件夾,重新編譯運行即可。 英文答案如下: I

原创 Android SVN報錯:Server SSL certificate verification failed:hostname, issuer is not trusted

Error:svn: E170013: Unable to connect to a repository at URL 'https://www.yng.com.cn/svn/yt_Ps_Android/trunk/Market/tru

原创 筆記本電腦連接手機熱點,顯示網絡受限上不了網解決方法

首先,先連上手機熱點。接着等待出現的受限問題,如下圖:就如屏幕右下角網絡信號格帶上“歎號!”了。此時上不了網了。   第二步,右擊該熱點展開菜單列表,選擇“狀態”這一項。   第三步:在打開的狀態界面,點擊下圖紅圈中的“診斷”按鈕。

原创 在第三方sdk中怎麼更改狀態欄文字顏色?

有很簡單的方案,不知道行不行,還沒有試過    

原创 Android studio:更換SVN地址

某天搬辦公室了,然後SVN服務器的地址變化了,就要重新更改svn的地址,因爲AS的項目代碼已經有一些更改後的代碼,不能重新在新SVN上clone項目打開,那樣太麻煩了。百度的答案多數是打開android studio-VCS-->Subv

原创 android studio Error:Cannot find snapshot for id:

未知操作引起的AS中的項目保錯了,說是快照找不到。 刪除AS 項目目錄下的.gradle下的所有文件,然後重新編譯運行項目即可。

原创 android彈出軟鍵盤時,editText被遮擋的問題

<activity android:name=".ui.activity.HomeStockGameRankActivity" android:windowSoftInputMode="stateAlwaysH

原创 Android動態生成ImageView用Glide和設置setTag()報錯不執行問題

一個坑,imageView.setTag和Glide加載圖片時,一定要把Glide放在前面,不然imageView.setTag就會報錯拋出異常,筆記留存 ImageView imageView = new ImageView(

原创 Android動態測量控件高度(Relatelayout,viewpager)並動態設置高度

        int w= View.MeasureSpec.makeMeasureSpec(0,View.MeasureSpec.UNSPECIFIED); int h = View.MeasureSpec.make

原创 AS運行出錯current device with density "-1" and ABIs "".

The currently selected variant "baidu-debug" uses split APKs, but none of the 1 split apks are compatible with the curr

原创 android泛型的簡單用法

 ListImgsSerializableTwo listImgsSerializable = new ListImgsSerializableTwo();                 listImgsSerializable.set

原创 android studio Re-download dependencies and sync project (requires network)

Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occu

原创 資源文件麼有找到異常:android.content.res.Resources$NotFoundException: String resource ID #0x4

在一個時間空間中更新用戶的年齡 //時間選擇器 ,自定義佈局 pvCustomTime = new TimePickerView.Builder(this, new TimePickerView.OnTimeSelect