Re: [問題] 設定layout時,預覽的問題
容我自問自答一下...說不一定有人也會遇到類似狀況.....
我後來是參考
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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章