原创 andorid 在列表Adapter中edittext使用TextWatcher導致數據錯亂問題
andorid 在列表Adapter中edittext使用TextWatcher導致數據錯亂問題 這裏使用的是RecyclerView使用BaseQuickAdapter EditText et_money=helper.ge
原创 androidx 10.0 獲取圖片失敗:報錯open failed: EACCES
報錯open failed: EACCES:繞了一大圈,剛開始以爲是權限問題,但是我全是加了,6.0以上的權限也加了還是報錯open failed: EACCES,百度找了一遍 全是說要手動添加權限的…這裏做下記錄 需要在 An
原创 android 中ListView、RecyclerView自動跳到頁面頂部或者中間的問題
ListView、RecyclerView自動跳到頁面頂部或者中間的問題 解決問題: 在父控件中添加android:descendantFocusability="blocksDescendants"這一句屬性
原创 java 中文名和少數民族的名字 常用正則表達式
中文名和少數民族的名字 /** * 驗證輸入的名字是否爲“中文”或者是否包含“·” */ public static boolean isLegalName(String name){
原创 android AlertDialog修改butto顏色
AlertDialog修改butto顏色 AlertDialog dialog=new AlertDialog.Builder(this, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT)
原创 android EdItText保留兩位小數
private TextWatcher etNumTextWatcher = new TextWatcher() { @Override public void onTextChanged(CharSequence s, in
原创 Android 7.0以上 適配安裝APK
Android 7.0以上 適配安裝APK 別忘了在清單文件中給上安裝權限 <!--安裝未知來源應用--> <uses-permission android:name="android.permission.R
原创 Android EditText軟鍵盤彈出時防止佈局上移和關閉軟鍵盤
EditText軟鍵盤彈出時防止佈局上移和關閉軟鍵盤 在代碼setContentView()之前加入: this.getWindow().setSoftInputMode(WindowManager.LayoutParams.
原创 BaseQuickAdapter——RecyclerView通用適配器使用
BaseQuickAdapter——RecyclerView通用適配器使用 https://www.jianshu.com/p/40457c16e44a BRVAH官方使用指南:http://www.jianshu.com/p/b
原创 android 圖片輪播控
android 圖片輪播控件 1.Android-ConvenientBanner git 鏈接 2.https://github.com/youth5201314/banner
原创 Android EditText軟鍵盤彈出時防止佈局上移
EditText軟鍵盤彈出時防止佈局上移 在代碼setContentView()之前加入: this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_I
原创 Android系統服務及權限設置
Android系統服務及權限設置 原文 :http://blog.sina.com.cn/s/blog_66edd39d01012i46.html 1 活動管理器 權限 <uses-permission android:nam
原创 android設置狀態欄顏色
android設置狀態欄顏色 在BaseActivity中設置 setWindowStatusBarColor(this, R.color.transparent,true); public void setWind
原创 android 獲取設備唯一ID
android 獲取設備唯一ID /** * 獲取設備唯一ID * @return */ @SuppressLint("MissingPermission") public static String getUUI
原创 android IDEA插件官網
記錄官網地址 [ https://plugins.jetbrains.com/androidstudio]