可能重複:
creating custom android keyboard layout的Android定製鍵盤xml文件
我開始開發自己的輸入法,但我堅持的XML文件。 Eclipse似乎無法找到鍵盤,也沒有Row和Key類。任何人都可以告訴我如何解決這個問題,或者如何用java編寫一個ime佈局?如果這個描述缺乏信息,請隨時告訴我。總之,感謝大家 首先它表明這一點: NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
"" does not set the required layout_width attribute: (1) Set to "wrap_content" (2) Set to "match_parent" "" does not set the required layout_height attribute: (1) Set to "wrap_content"
如果我設置layout_widht屬性它表明:
NOTE: This project contains Java compilation errors, which can cause rendering failures for custom views. Fix compilation problems first.
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup Exception details are logged in Window > Show View > Error Log The following classes could not be found: - Keyboard (Fix Build Path, Edit XML) - Row (Fix Build Path, Edit XML)
您是否收到任何錯誤消息?發佈它們。 – ajtrichards
如何將\ n添加到我的評論中? – user1708101