Re: [問題] 設定layout時,預覽的問題

看板AndroidDev作者 (Yellow Power)時間13年前 (2012/07/26 09:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
容我自問自答一下...說不一定有人也會遇到類似狀況..... 我後來是參考 http://stackoverflow.com/questions/9011944 /android-ice-cream-sandwich-edittext-disabling-spell-check-and-word-wrap http://stackoverflow.com/questions/11275754/ exception-in-loading-layout-java-util-linkedhashmap-eldestljava-util-mapentr 其中提到說加上 android:inputType="textNoSuggestions" 就可以了 ※ 引述《adbo1108 (Yellow Power)》之銘言: : 最近把開發工具跟SDK都換到最新版 : 結果發現我在編輯Layout的xml檔時 : 當我把要的元件都拉好,然後再到xml檔去修改程式碼時 : 只要我把某個tag的一項用不到的屬性刪掉時,就會出現沒有辦法在預覽的情況.. : 比方說: : <EditText : android:id="@+id/editText1" : android:layout_width="wrap_content" : android:layout_height="wrap_content" : android:layout_weight="1" : android:ems="10" : android:inputType="number" > : <requestFocus /> : </EditText> : 當我不要輸入只用數字輸入時,把android:inputType="number"拿掉 : 就會出現我上述的情況... : 就像這樣:http://ppt.cc/gorT : 我記得以前還沒更新前不會這樣, : 請問一下各位這個要如何去解決呢... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.17.235.57
文章代碼(AID): #1G49Zvm3 (AndroidDev)
文章代碼(AID): #1G49Zvm3 (AndroidDev)