原创 RecyclerView 在有限的窗口中展示大量數據集

需要添加依賴庫 compile 'com.android.support:recyclerview-v7:23.1.1'package com.zdsoft.recyclerview1129; import android.suppor

原创 GridView控件 以網格的形式顯示所有的組件

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" and

原创 通過隱式Intent調用相冊和調用相機 獲取圖片

package com.zdsoft.picture1202; import android.content.DialogInterface; import android.content.Intent; import android.

原创 ProgressDialog過時,替換

public static void ProgressBarCircleDialog(Context context) { AlertDialog.Builder builder = new AlertDialog.Builde

原创 AlertDialog對話框-自定義View

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" x

原创 Intent調用系統組件

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" and

原创 控件——RatingBar、SeeBar控件

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" an

原创 Toolbar 導航控件及DrawerLayout 側滑菜單

package com.zdsoft.toolbar1130; import android.support.v4.content.ContextCompat; import android.support.v4.widget.Draw

原创 日期、時間選擇器

bt_choose.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v)

原创 SharedPreferences存儲 首選項存儲

package com.zdsoft.sharedpreferces1207; import android.content.Context; import android.content.SharedPreferences; impo

原创 AlertDialog對話框

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

原创 PopupWindow阻塞式對話框

package com.zdsoft.popupwindow1130; import android.support.v4.content.ContextCompat; import android.support.v7.app.App

原创 Android 基本控件

layout頁面 <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/androi

原创 Intent的使用:顯示調用及隱式調用

package com.zdsoft.launchmode1201; import android.content.Intent; import android.support.v7.app.AppCompatActivity; imp

原创 Intent的使用:顯示調用 Activity的跳轉

package com.zdsoft.startactivity1201; import android.content.Intent; import android.preference.PreferenceManager; impo