原创 banner的使用_

public class MyBanner extends ImageLoader { @Override public void displayImage(Context context, Object path, Im

原创 CSS_絕對佈局

*{margin: auto; } .big{width:600px;height:600px ;background-color: bisque;position: relative; } .da{width:200px;height:

原创 okhttp_解析數據

@Override public void onResponse(Call call, Response response) throws IOException { final St

原创 Android面試知識點_

自我介紹: 您好,我是xxx,從事android開發也有好幾年了,總共呆過兩家公司,第一家是xx,幹了1年,在這家公司做過3個項目,剛開始的時候主要寫一些需求文檔,用xmind整理項目功能,做一些簡單的界面,大家都知道搞it的技術很重要,

原创 ReRxMvpGreenDao_斷點續傳

Retrofit: public interface RetrofitZj { /* @Streaming*//*大文件需要加入這個判斷,防止下載過程中寫入到內存中*//* @GET Observable<Res

原创 仿探探_

compile 'com.github.bumptech.glide:glide:3.8.0' compile project(':library') 佈局:主佈局 <FrameLayout android:la

原创 ViewPager+Fragment

public class MainActivity extends FragmentActivity { ViewPager vp; List<Fragment> list; RadioGroup rg; @Override

原创 Retrofit+RXJava_多線程下載視頻列表

BaseService: public class BaseService { private static OkHttpClient.Builder httpClient = new OkHttpClient.Builder(

原创 多線程下載文件(支持暫停、取消、斷點續傳)

多線程下載文件(支持暫停、取消、斷點續傳) 多線程同時下載文件即:在同一時間內通過多個線程對同一個請求地址發起多個請求,將需要下載的數據分割成多個部分,同時下載,每個線程只負責下載其中的一部分,最後將每一個線程下載的部分組裝起來即可。

原创 多線程斷點續傳視頻列表

工具類: import android.content.Context; import android.content.SharedPreferences; import android.os.Handler; import andro

原创 Android自定義捕獲Application全局異常

大家都知道,現在安裝Android系統的手機版本和設備千差萬別,在模擬器上運行良好的程序安裝到某款手機上說不定就出現崩潰的現象,開發者個人不可能購買所有設備逐個調試,所以在程序發佈出去之後,如果出現了崩潰現象,開發者應該及時獲取在該設備

原创 上傳頭像_

工具類: import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; import andr

原创 RadioButton實現小圓點輪播_

public class FragmentNews extends Fragment { private ViewPager vp; private ListView lv; private RadioGroup

原创 屬性動畫_展開菜單欄

public class MainActivity extends Activity implements View.OnClickListener{ private int imageRes[] = new int[]{

原创 GreenDao基本使用_

Ben類: @Entity public class User { @Id private long id; @Property private String name; @Property