底下程式碼的目的是想藉由動態的方式改變Spinner顯示的字 private void findView btnReset = ButtonfindViewByIdR.id.btnReset; btnReset.setOnClickListenernew OnClickListener @O
- 9月 14 週五 201219:20
經由程式碼改變Spinner中的文字
- 9月 07 週五 201215:47
取得Spinner選取的選項
SpinneritemSp = SpinnerfindViewByIdR.id.itemSp; itemSp.setOnItemSelectedListenernew OnItemSelectedListener @Override public void onItemSelectedAdapt
- 9月 05 週三 201215:44
將LinearLayout中的元件置中對齊
將LinearLayout中的元件置中對齊 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center
- 9月 05 週三 201214:45
禁止android自動翻轉螢幕
只要在 AndroidManifest.xml 的activity屬性裡加兩個屬性即可 android:name=.Main android:screenOrientation=portrait android:configChanges=orientationkeyboardHidden andr
- 9月 04 週二 201211:11
使用SQLite DB
如何進入SQLite環境 1. find the SDK adb.exe , and open dos window then entry to sdk folder. ex:C:android-sdk-windowsplatform-toolsadb shell 如果同時開啟多個模擬器,上述的指令
- 8月 27 週一 201215:36
Android學習 CH4 UI設計基本概念 I
1. eclipse自動提示 : alt /2. UI的兩大類 widget: UI的基本單位,ex: ButtonEditTextCheckBox layout: like容器,可以再放入其它的容器或widget, ex: LinearLayoutRelativeLayoutTableLayou
- 8月 24 週五 201214:56
建立Android專案多國語言

設定多國語言 1.按下 Open a wizard to help careate a new Android XML file , 2.建立strings.xml Resource Type選擇:Values Project選擇:要做多國語言的專案 File: 填入strings.xml 3.選取
- 8月 15 週三 201200:21
Android開發工具
開發Android應用程式工具1 JDK 1.62 Eclipse 3.4以上建議下載EE版3 ADT : 專為Eclipse設計的外掛程式 3.1 至Android官網下載 3.2 Help/Install New Software/Add/Archive , 選擇下載的ADT檔案 3.3 安裝
