原创 Cordova開發自定義插件

1:安裝plugman,在終端輸入 cnpm install -g plugman 2:新建一個插件myEcho plugman create --name 《Name》 --plugin_id 《pluginID》 --plug

原创 Ionic性能優化(一)

引入 Crosswalk Crosswalk是一個WebView Engine的名稱 由於在安卓環境中各個版本不一,特別是4.1以前的版本會出現很多不兼容的問題 因此打包此插件可以讓ionic運行的時候調用Crosswalk瀏覽器

原创 Shape

<shape xmlns:android="http://schemas.android.com/apk/res/android"   Shape

原创 vooley(二)

1. ImageRequest的用法         RequestQueue request=Volley.newRequestQueue(get

原创 Android各種權限

在Android的設計中,資源的訪問或者網絡連接,要得到這些服務都需要聲明其訪問權限,否則將無法正常工作。在Android中這樣的權限有很多種,這裏

原创 SwipeRefreshLayout下拉刷新控件

SwipeRefreshLayout     作爲根佈局 setRefreshing          true|false 開啓|取消動畫效果 s

原创 Viewpager

addOnPageChangeListener   監聽變化 setCurrentItem    設置item getCurrentItem    

原创 Gson

 //返回的是對象 {     "Title": "呵呵",     "Tag": {         "size": 1,         "tag1": "Javascript",         "tag2": "Java",  

原创 RecyclerView

public class RecyclerAdapter extends RecyclerView.Adapter<RecyclerAdapter.

原创 LayoutParams

LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) text.getLayoutP

原创 Sqlite

下面是Cursor對象的常用方法: c.move(int offset); //以當前位置爲參考,移動到指定行   c.moveToFirst();    //移動到第一行   c.moveToLast();     //移動到最後一行

原创 canvas繪製

rotate     // 旋轉畫布 填充drawARGB(int a, int r, int g, int b)drawColor(int col

原创 啓動模式

1. Standard模式(默認) 我們平時直接創建的Activity都是這種模式的Activity, 這種模式的Activity的特點是:只要你創

原创 Vooley(一)

StringRequest的用法   默認是get訪問 Method.GET Method.POST GET請求  RequestQueue request = Volley.newRequestQueue(getContext());

原创 View動畫屬性

android:scaleX         屬性說明: 水平方向縮放比例 android:scaleY         屬性說明: 豎直方向縮放比