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

看板AndroidDev作者 (Yellow Power)時間13年前 (2012/07/25 21:58), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
最近把開發工具跟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.40
文章代碼(AID): #1G3_kHa6 (AndroidDev)
文章代碼(AID): #1G3_kHa6 (AndroidDev)