jianghuiquan-從零開始學Android目錄(002)

jianghuiquan-從零開始學Android目錄(002)

jianghuiquan-從零開始學Android目錄(002)


 

001.-廢話(http://blog.csdn.net/jianghuiquan/article/details/8225504)

002.-ADT就可以了(http://blog.csdn.net/jianghuiquan/article/details/8227486)

003.-Hello,world(http://blog.csdn.net/jianghuiquan/article/details/8232253)

004.-上架打包(http://blog.csdn.net/jianghuiquan/article/details/8240377)

005.-專案架構介紹(http://blog.csdn.net/jianghuiquan/article/details/8244374)

006.-EditText
& Button
介紹(http://blog.csdn.net/jianghuiquan/article/details/8252430)

007.-RadioGroup
& CheckBox
介紹(http://blog.csdn.net/jianghuiquan/article/details/8252525)

008.-下拉Spinner(http://blog.csdn.net/jianghuiquan/article/details/8252537)

009.-ImageButton(http://blog.csdn.net/jianghuiquan/article/details/8252548)

   –設置android:padding=”0dp”,按鈕灰色邊框去掉。

   –設置android:src=”@drawable/名稱,圖片資源。

010.-ImageView(http://blog.csdn.net/jianghuiquan/article/details/8252554)

   -ImageView.setImageResource(R.drawable.名稱);//程式載入資源檔圖片

011.-DatePicker
& TimePicker(http://blog.csdn.net/jianghuiquan/article/details/8294126)

   -getYear()getMonth()getDayOfMonth()方法獲取年、月、日。

   -getCurrentHour()getCurrentMinute()方法獲取時、分。

012.-佈局LayoutsLinearLayout線性佈局(http://blog.csdn.net/jianghuiquan/article/details/8295714)

013.-RelativeLayout(http://blog.csdn.net/jianghuiquan/article/details/8298687)

014.-FrameLayout(http://blog.csdn.net/jianghuiquan/article/details/8299961)

015.-TableLayout(http://blog.csdn.net/jianghuiquan/article/details/8299970)

   –重點在指定有幾列,行的部分可以不規則

016.-GridLayout(http://blog.csdn.net/jianghuiquan/article/details/8299973)

    -android:rowCount=”5″ 

    -android:columnCount=”4″

   -Buttonandroid:layout_columnSpan=”2″ android:layout_columnSpan=”3″

018.-按鈕事件(http://blog.csdn.net/jianghuiquan/article/details/8307909)

   -btnLogin.setOnClickListener(new
LoginOnClickListener());

   -btnLogin.setOnClickListener(new
OnClickListener(){

020.-RadioGroup
& CheckBox
事件OnCheckedChangeListener(http://blog.csdn.net/jianghuiquan/article/details/8333582)

021.-事件OnItemSelectedListener(http://blog.csdn.net/jianghuiquan/article/details/8348566)

   –下拉式選單的值放在資源檔中

022.-下拉式選單連動(http://blog.csdn.net/jianghuiquan/article/details/8348575)

   –下拉式選單的值放在二維字串陣列中

023.-改變焦點事件OnFocuChangeListener

024.-長按2秒事件OnLongClick(http://blog.csdn.net/jianghuiquan/article/details/8348680)

   –修改桌面權限設定<uses-permission
android:name=”android.permission.SET_WALLPAPER”/> 

025.-觸控事件OnTouchListener(http://blog.csdn.net/jianghuiquan/article/details/8348695)

026.-鍵盤事件OnKeyListener(http://blog.csdn.net/jianghuiquan/article/details/8348731)

   –字串函數(lengthsubstring)

027.-滾動畫面(元件要超過視窗大小)ScrollView(http://blog.csdn.net/jianghuiquan/article/details/8349570)

   –動態增加元件(但是實際上作法應該還要建立物件陣列)

   -ScrollView要包在LAYOUT的外面

028.-ListView之一(http://blog.csdn.net/jianghuiquan/article/details/8349576)

   –單純顯示文字版

029.-ListView之二(http://blog.csdn.net/jianghuiquan/article/details/8349587)

   –圖加文字(ArrayAdapter)

030.-AlertDialog(http://blog.csdn.net/jianghuiquan/article/details/8350461)

   -(有四個範例純文字、文字+按鈕、單選、複選)

032.-日期時間選擇對話盒DatePickerDialog(http://blog.csdn.net/jianghuiquan/article/details/8350468)

033.-進度對話盒ProgressDialog(http://blog.csdn.net/jianghuiquan/article/details/8350472)


 


發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *