問題描述
自從我上次開發(fā) Android 應(yīng)用程序以來已經(jīng)有好幾年了.從那時(shí)起,Eclipse 中添加了一個(gè)圖形編輯器,允許您以所見即所得的方式(android sdk 的一部分)為布局生成 XML.我喜歡.加快速度.
但是,使用這個(gè)編輯器,我在xml 視圖"而不是圖形布局"視圖中編輯 xml 實(shí)在是太費(fèi)時(shí)間了.
在 XML 視圖中,我不能再使用很多快捷鍵.像 ctl-c 或 ctl-v (剪切和粘貼),最令人沮喪的是我不能使用刪除"鍵.當(dāng)我執(zhí)行剪切和粘貼時(shí),沒有任何反應(yīng).檢查剪貼板,我可以看到一開始沒有任何內(nèi)容被復(fù)制.當(dāng)按下刪除鍵時(shí),會發(fā)生奇怪的副作用.有時(shí)什么都沒有……有時(shí)輸入小部件被刪除.我想不通.
在 XML 視圖中,我可以使用鼠標(biāo)進(jìn)行剪切和粘貼,一切都很好.我可以使用退格"鍵而不是刪除鍵來刪除文本.所以我可以毫無問題地把所有東西都放進(jìn)去.但是...這是背部的主要疼痛.我已經(jīng)編程了 20 年的某些方式,并且很難讓自己使用鼠標(biāo)進(jìn)行剪切和粘貼等等.
有其他人遇到過這種情況嗎??我在互聯(lián)網(wǎng)上沒有找到任何與此問題相關(guān)的信息.
注意:我知道我可以將 Eclipse 中的編輯器首選項(xiàng)更改為只使用普通的 eclipse xml 編輯器,但我失去了所見即所得的顯示...這對于可視化來說非常好.
如果您發(fā)現(xiàn)此問題或知道解決此問題的方法...請告訴我.
我不認(rèn)為這有什么不同,但這是我的規(guī)格.
日食:版本:4.1.0內(nèi)部版本號:M20110912-1510
Android 開發(fā)工具 12.0.0.v201106281929-138431
今天發(fā)布的 ADT 20 Preview 3 中已修復(fù)此問題.
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
這篇關(guān)于Android XML 編輯器和 Eclipse 的問題...難以手動(dòng)編輯 XML的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!