原创 aar裏依賴aar外層需設置

外層project的build.gradle需設置 repositories裏: flatDir { // 由於Library module中引用了 fusion 庫的 aar,在多 module 的情況下, // 其他

原创 接入支付寶刷臉

https://blog.csdn.net/qq_37328546/article/details/85776338

原创 TCP-待完善

客戶端:可以連接服務端、發送數據、接收數據、關閉連接等。 服務端:可以實現綁定綁定端口,接收客戶端的連接、接收數據,發送數據等。 參考:https://blog.csdn.net/vnanyesheshou/article/details

原创 android 對for循環進行優化

本文鏈接:https://blog.csdn.net/bzlj2912009596/article/details/77987394

原创 處理掃描槍事件

///////////////////////////////////////////////////////////////////////////// //處理掃描槍事件 private boolean mdataScanClean

原创 合併相同商品

//合併相同商品 private void toMergeSameItem(List<pos_detail> details) { Map<String, pos_detail> detailMap = new HashMap<

原创 按商品數量進行排序

//按商品數量進行排序 private void listSort(List<pos_detail> mList) { if (!CheckUtil.isEmpty(mList)) { Collections.s

原创 android greendao 判斷某個字段是多少位

/** * 查詢所有倉庫 四位爲門店 6位是倉庫 */ public List<bi_branch> queryBranchList6bit(){ return daoSession.getBi_branchDao().q

原创 【Android】RxJava2可以這麼學!

https://www.jianshu.com/p/7de8c2fb9617

原创 Intent 和Bundle 傳值

傳值: Intent intent = new Intent(); Bundle bundle = new Bundle(); bundle.putSerializable(“data”, (Serializable) pos_t

原创 androidx 換成 support

androidx 換成 support 最近創建項目發現多了個androidx,並且以前用的好好的庫也不能用了,這裏爲了趕項目就把 androidx 還是換成了之前的 support,這裏記錄下步驟。 項目根目錄 gradle.prope

原创 Didn't find class "android.support.v7.widget.RecyclerView" 解決辦法 ———————————————— 版權聲明:本文爲CSDN博主「eag

依賴記得加:implementation 'com.android.support:recyclerview-v7:28.0.0' 你的可能是這樣的 <android.support.v7.widget.RecyclerView 這纔是對

原创 判斷時間是否在時間段內

/** * 判斷時間是否在時間段內  */ public static boolean belongCalendar(Date nowTime, Date beginTime, Date endTime) { //設置當前時

原创 RxJava 中文文檔

https://mcxiaoke.gitbooks.io/rxdocs/content/Subject.html