原创 android 給Apk簽名

apksigner sign --ks D:\hhhhh\aizhiyi.key --ks-key-alias aizhiyi D:\hhhhh\unsign.apk apksigner sign --ks 祕鑰路徑 --ks

原创 改變方法

// mCDj.setOnCheckedChangeListener(this); // mCYc.setOnCheckedChangeListener(this); //mCLp.setOnCheckedCh

原创 OkGo 保存視頻(短視頻下載)

導入依賴 //go 網絡請求框架 基於okhttp implementation 'com.lzy.net:okgo:3.0.4' 點擊 保存下載 view_dialog.findV

原创 簡單的Dlg

alert = new AlertDialog.Builder(getActivity()).create(); alert.setTitle("提示");

原创 Fragment切換時出現崩潰

Fragment切換時如果出現崩潰 在請求接口使用isAdded()方法,如上圖。判斷當前的fragment是否存在

原创 展示 mvp

網絡工具類 HttpUtil public class HttpUtil { private static HttpUtil httpUtil; private OkHttpClient okHttpClient; p

原创 dialo

private void showDialogs() { View view = LayoutInflater.from(getContext()).inflate(R.layout.high_dialog_layout, nul

原创 獲取到adapter的控件 做判斷

一:EventBus使用: 首先: 1.創建一個 EventMessage 用來發送eventbus消息和接收的對象 public class EventMessage { } 2. 在你要點擊的方法裏寫入 EventBus.

原创 修改軟鍵盤迴車

actionSend//發送 android:imeOptions=“actionSearch”//搜索 android:maxLines=“1” android:singleLine=“true”

原创 實現購物車聯動_複選框加減號計算價格聯動_全選反選

計算價格 ***// 第一步 *** Adapter 寫入 //寫一個數量方法 jianshuanPrice() //實現 public void jianshuanPrice() { //定義一個價格double類

原创 GrennDao數據庫

GrennDao 實現: //第一步導入依賴 implementation 'org.greenrobot:greendao:3.2.2' implementation 'org.greenrobot:greendao-gener

原创 Bitmap轉String類型

private Bitmap temBitmap; convertIconToString(temBitmap) public static String convertIconToString(Bitmap bitmap

原创 List集合 值進行累加

//轉換小數點 DecimalFormat xsTwo = new DecimalFormat("0.00"); //首先把值置爲0 private Double shipping_fee

原创 支付串拼接

public static String getUserAgent(){ String userAgent = ""; StringBuffer sb = new StringBuffer(); userA

原创 購物車二級聯動實現邏輯

//主 viewHolderOne.one_check.setChecked(shopBean.check); //使用一下 viewHolderOne.one_check.setTag(shopBean); //選中 vie