現在網路購物都很快,一天就可以收到了。
包裝還不錯,東西小小的,有金屬質感。打開後才發現沒有吊飾孔,以後要小心別掉了!
插入Zenfone 6 馬上被認出一個USB儲存裝置,可是放到較早期的手機: sony LT29i 就會出現檔案系統不相容或格式錯誤的問題,反正是暫時沒在用的手機,就不予理會吧。
接下來就是最關心的存取速度,是否真的能達到它所宣稱的速度? 將它插入電腦 usb 3.0的插孔,以下就是用 ATTO v2.47 Bench32 測試所得結果:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
所以在component Tree中點選LinearLayout,然後在Properties中將其 orientation選為Vertical.
3. 原專案中就有的 TextView可以先將其刪除。接下來在Palette中拉出4個LinearLayout(Horizontal),然後在Component Tree中選取這四個LinearLayout,在Properties中將Layout:height 輸入要的高度,例如 100dp
<string name="height">身高</string> <string name="weight">體重</string> <string name="bmi">BMI</string> <string name="calculate">計算</string>
6. 點選第一個textView,並更改其text屬性為@string/height (按旁邊的 ... 按鈕,就可列出所有可用資源,string中定義的大概都在最下面,點選就ok,不用自己輸入),textSize 為 24dp,再將第一個editText的textSize屬性也設定為24dp,textColor 設定為喜歡的顏色。最後點選第一橫列 LinearLayout(horizontal),設定 gravity為center_vertical。依此動作設定各元件屬性,就可完工囉。
<string name="hello_world">Hello world!</string>
將它改成
<string name="hello_world">歡迎!</string>