2014年7月11日 星期五

Eclipse Alt+/ 失效問題

感覺Eclipse每個版本都有點不穩定,發現常常安裝後會有這個問題
就是 Alt+/ 基本上會顯示提示讓您選擇
有問題的話可以試試看這個方法
Eclipse
->Window-
->Preferences
->General
->Key
->上面找尋word completion ,unbind Command
->再查詢 content assist 把Binding 改成 Alt+/ 然後apply 應該就可以了 :)

有更好的方式麻煩大家告訴小弟 :)
**chinlam91

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>
大學生活結束了,終於順利畢業  :)
接下來就是展開人生新的旅程!暑假這段期間在500net公司上班,發現大學學的東西真的有限,只好努力學習更多準備面對未來 。
在這裡想分享自己在業界所學到的東西,哈哈大學做Android App 發現自己做得比初學者還爛 XD 只好乘這兩個月努力一波 :)