[問題] 設定layout時,預覽的問題
最近把開發工具跟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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章