感覺Eclipse每個版本都有點不穩定,發現常常安裝後會有這個問題
就是 Alt+/ 基本上會顯示提示讓您選擇
有問題的話可以試試看這個方法
Eclipse
->Window-
->Preferences
->General
->Key
->上面找尋word completion ,unbind Command
->再查詢 content assist 把Binding 改成 Alt+/ 然後apply 應該就可以了 :)
有更好的方式麻煩大家告訴小弟 :)
**chinlam91
2014年7月11日 星期五
LinearLayout比重方式

設計Android App 有個麻煩之處就是,使用android系統的手機都有很多不同大小的畫面,所以在設計時我們必須使用activity或xml檔,在裡頭設定頁面的屬性。例如以上這個方式是使用LinearLayout比重的方式來設計,例如一下程式碼,有發現我的android:layout_height="0dp" 還有android:layout_weight="1",height是表示我們需要改變的高度,然後使用weight可以讓我們來設計佔整個畫面的多少。例如兩個weight都是1, 就是1/2的意思。當然如果我們要改變寬度就是用一樣的方式把width改變。(有寫錯或有更好方法的可以告訴小弟 :) )
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical" >
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical" >
</LinearLayout>
</LinearLayout>
訂閱:
文章 (Atom)