Activit頁面 //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í)長,第二個(gè)是每次減少的時(shí)間 CountDo...
一、導(dǎo)入依賴 implementation'io.reactivex.rxjava2:rxjava:2.1.3' implementation'...
//2.通過Retrofit中的方法client(this.retrofithuangcun())傳入類名 //1.以下是我寫好的類首先將其復(fù)制...
SP 判斷程序是否是第一次進(jìn)入 一、在Activity的onDestroy方法中創(chuàng)建數(shù)據(jù)庫并且存入數(shù)據(jù)做標(biāo)識(shí) //獲取S...
WebView簡單的使用 一灌闺、在瀏覽器打開 1.xml布局添加控件 <WebVie android:la...
1.導(dǎo)入依賴 implementation'com.github.bumptech.glide:glide:4.3.1' annotationP...