原创 Android Material design 中的新控件使用

1. TabLayout //佈局 <android.support.design.widget.TabLayout android:id="@+id/tl_tab" android:layout_

原创 TimePicker,DatePicker一起使用

DatePicker佈局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="ve

原创 《第一行代碼》學習記錄(二)

第四章 fragment的生命週期 //當activity和fragment直接建立聯繫是調用 onAttach() // onCreate() //fragment創建視圖是調用 onCreateView() //確保與fr

原创 Android框架學習之Retrofit(三)retrofit和okhttp的區別

張鴻祥博客http://blog.csdn.net/lmj623565791/article/details/51304204 okhttp工具類 https://github.com/hongyangAndroid/okhtt

原创 okhttp-OkGo(okhttp-util升級版)網絡請求框架(一)

OkGo - OkHttpUtils-2.0.0 升級後改名 OkGo,全新完美支持RxJava 該庫是封裝了okhttp的標準RESTful風格的網絡框架,可以與RxJava完美結合,比Retrofit更簡單易用。支持大文件上

原创 Caldroid日曆控件的使用

1.github地址 https://github.com/roomorama/Caldroid 2.添加依賴 compile 'com.roomorama:caldroid:3.0.1' 3.使用 //在activity的onc

原创 Android框架學習之GreenDao(二)數據庫升級

主要思路,先備份數據,在還原數據 博客地址:http://blog.csdn.net/sinat_15877283/article/details/54583422

原创 android-times-square日期控件使用

1.github地址 https://github.com/square/android-times-square 2.引用依賴 compile 'com.squareup:android-times-square:1.6.5@a

原创 java線程池

Java通過Executors提供四種線程池,分別爲: newCachedThreadPool創建一個可緩存線程池,如果線程池長度超過處理需要,可靈活回收空閒線程,若無可回收,則新建線程。 newFixedThreadPool

原创 Android框架學習之GreenDao(一)

Giuthub:https://github.com/greenrobot/greenDAO greenDao官網:http://greenrobot.org/greendao/ greenDao2的引入地址(Github上面

原创 《第一行代碼》學習記錄(四)

第十章 1.webView webView.getSettings().setJavaScriptEnabled(true);//支持JavaScript腳本 webView.setWebViewClient(ne

原创 《第一行代碼》學習記錄(三)

第八章 Notification通知 書本上介紹的創建方式已經過時了 //第一步:獲取狀態通知欄管理 NotificationManager manager = (NotificationManager) getSystem

原创 滑動切換Activity

博客地址 http://blog.csdn.net/jiangxuqaz/article/details/47264473 點贊 收藏 分享 文章舉報 hzflogo

原创 《第一行代碼》學習記錄(一)

第二章 隱藏標題欄 requestWindowFeature(Window.FEATURE_NO_TITLE); 這句話要在setContentView()前調用 注意: 繼承AppCompatActivity時使用:

原创 AndroidAutoLayout 完美適配

git地址: https://github.com/hongyangAndroid/AndroidAutoLayout 添加依賴: compile 'com.zhy:autolayout:1.4.5' 使用: 在你的項目的An