Activit頁(yè)面 //for循環(huán)遍歷title集合for (int i = 0; i < list; i++) {//創(chuàng)建FragmentSh...
utils類 1.封裝頭部 private Retrofit getRetrofit(String url) { Retrofit retrof...
//創(chuàng)建popupwindow PopupWindow popupWindow =new PopupWindow(); //設(shè)置寬高屬性為充滿...
1规揪、方法一: 利用CountDownTimer類 //這個(gè)方法中的兩個(gè)參數(shù)第一個(gè)是 倒計(jì)時(shí)的時(shí)長(zhǎng),第二個(gè)是每次減少的時(shí)間 CountDo...
一效拭、導(dǎo)入依賴 implementation'io.reactivex.rxjava2:rxjava:2.1.3' implementation'...
//2.通過(guò)Retrofit中的方法client(this.retrofithuangcun())傳入類名 //1.以下是我寫好的類首先將其復(fù)制...
SP 判斷程序是否是第一次進(jìn)入 一、在Activity的onDestroy方法中創(chuàng)建數(shù)據(jù)庫(kù)并且存入數(shù)據(jù)做標(biāo)識(shí) //獲取S...
WebView簡(jiǎn)單的使用 一胖秒、在瀏覽器打開(kāi) 1.xml布局添加控件 <WebVie android:la...
1.導(dǎo)入依賴 implementation'com.github.bumptech.glide:glide:4.3.1' annotationP...