問題描述
自從我上次開發 Android 應用程序以來已經有好幾年了.從那時起,Eclipse 中添加了一個圖形編輯器,允許您以所見即所得的方式(android sdk 的一部分)為布局生成 XML.我喜歡.加快速度.
但是,使用這個編輯器,我在xml 視圖"而不是圖形布局"視圖中編輯 xml 實在是太費時間了.
在 XML 視圖中,我不能再使用很多快捷鍵.像 ctl-c 或 ctl-v (剪切和粘貼),最令人沮喪的是我不能使用刪除"鍵.當我執行剪切和粘貼時,沒有任何反應.檢查剪貼板,我可以看到一開始沒有任何內容被復制.當按下刪除鍵時,會發生奇怪的副作用.有時什么都沒有……有時輸入小部件被刪除.我想不通.
在 XML 視圖中,我可以使用鼠標進行剪切和粘貼,一切都很好.我可以使用退格"鍵而不是刪除鍵來刪除文本.所以我可以毫無問題地把所有東西都放進去.但是...這是背部的主要疼痛.我已經編程了 20 年的某些方式,并且很難讓自己使用鼠標進行剪切和粘貼等等.
有其他人遇到過這種情況嗎??我在互聯網上沒有找到任何與此問題相關的信息.
注意:我知道我可以將 Eclipse 中的編輯器首選項更改為只使用普通的 eclipse xml 編輯器,但我失去了所見即所得的顯示...這對于可視化來說非常好.
如果您發現此問題或知道解決此問題的方法...請告訴我.
我不認為這有什么不同,但這是我的規格.
日食:版本:4.1.0內部版本號:M20110912-1510
Android 開發工具 12.0.0.v201106281929-138431
今天發布的 ADT 20 Preview 3 中已修復此問題.
http://tools.android.com/download/adt-20-previewp>
It's been a few years since I have last developed android apps. Since then, a graphical editor was added to Eclipse that allows you to generate the XML for an layout in a WYSIWYG fashion (part of the android sdk). I like it. Speeds things up.
However, with this editor I am having a heck of a time editing the xml in the "xml view" as opposed to the "graphical layout" view.
When in the XML view, I can no longer use a lot of shortcut keys. Like ctl-c or ctl-v (cut and paste) and most frustratingly I can't use the "delete" key. When I perform a cut and paste, nothing happens. And checking the clipboard, I can see that nothing gets copied in the first place. When hitting the delete key, strange side effects happen. Somtimes nothing...othertimes enter widgets are removed. I can't figure it out.
While in the XML view, I can use the mouse to cut and paste and everything is fine. I can use the "backspace" key to remove text instead of the delete key. So I can get everything in there with no issues. But...this is a major pain in the backside. I have been programming certain ways for 20 years and it is hard to get myself to use the mouse to cut and paste and whatnot.
Has anyone else eperienced this?? I haven't found anything on the internet pertaining to this problem.
Note: I know I can change the editor preferences in Eclipse to just use the normal eclipse xml editor but I lose the WYSIWYG display...which is nice to have for visualization.
If you have seen this problem or know of a way to get around it...please, please, please let me know.
I don't think it makes a difference, but here are my specs.
Eclipse: Version: 4.1.0 Build id: M20110912-1510
Android Development Tools 12.0.0.v201106281929-138431
This is fixed in ADT 20 Preview 3, released today.
http://tools.android.com/download/adt-20-preview
這篇關于Android XML 編輯器和 Eclipse 的問題...難以手動編輯 XML的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!