原创 jQuery讓兩個select 互相換值
<style type="text/css"> select{ width: 400px; height: 400px;}
原创 適配器
//適配器 private void setAdapter() { if (myAdapter == null){ myAdapter = new MyAdapter(getActivity(), list);
原创 html爲視頻添加播放暫停按鈕
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <
原创 Angular過濾器
AngularJS過濾器應用場景: 主要用在數據的格式化上,例如獲取數組中的子集,對數組中的元素進行排序等。Ng內置了一些過濾器,它們是currency(貨幣)、date(日期)、filter(子串匹配)、limitTo(限制
原创 select 二級聯動
var cities = [ ["杭州市", "紹興市", "溫州市", "義烏市", "嘉興市"],
原创 簡單的組合動畫
imageView = (ImageView) findViewById(R.id.imageView); //動畫 //位移 ObjectAnimator animator = ObjectAnimator.ofFloat(imageV
原创 帶攔截器的okhttp封裝類
/** * 懶漢 安全 加同步 * 私有的靜態成員變量 只聲明不創建 * 私有的構造方法 * 提供返回實例的靜態方法 */ private st
原创 OkHttpClient post的使用
OkHttpClient okHttpClient=new OkHttpClient(); FormBody formboby=new FormBody.Builder() .add("mobile", "15715317583")
原创 okhttp的依賴
compile 'com.squareup.okhttp3:okhttp:3.6.0' compile 'com.squareup.okio:okio:1.11.0'
原创 Retrofit2帶gson的依賴
//Retrofit2的依賴 compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
原创 RetrofitFactory封裝類
public class RetrofitFactory { //使全局就一個OKHttpClient對象 public static OkHttpClient okHttpClient = new OkHttpClien
原创 mvp+rxjava+retrofit2封裝的依賴
/*5.0新控件的依賴*/ compile 'com.android.support:design:26.0.0-alpha1' /*RxJava與RxAndroid的依賴*/
原创 android自定義view小圓球指哪跑哪
private int cx = 100; private int cy = 100; /** * Canvas canvas畫布.....paint畫筆 * @p
原创 CartExpanableListview自適應有多少數據就多長
public class CartExpanableListview extends ExpandableListView { public CartExpanableListview(Context context) {
原创 app帶證書驗證的方法和okhttp日誌攔截器類
/** * app帶證書驗證的方法,使用是修改一下zhaoapi_server.cer即可,其他都是固定的模式,直接拷貝 */ public OkHttpClient setCard(String zhenshu) { //修