2012-11-10 2 views
0

가능한 중복 :
creating custom android keyboard layout안드로이드 사용자 정의 키보드 XML 파일

내가 내 자신의 IME 개발을 시작,하지만 난 XML 파일에 붙어있어. Eclipse는 Keyboard 나 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)

+0

오류 메시지가 표시됩니까? 그들을 게시하십시오. – ajtrichards

+0

내 의견에 \ n을 어떻게 추가합니까? – user1708101

답변

7
+0

표준 안드로이드 입력 방법 http://jayxie.com/mirrors/android-sdk/resources/articles/on-screen-inputs.html 그리고 튜토리얼 HTTP의 개요 : // 안드로이드 개발자 .blogspot.co.uk/2009/04/creating-input-method.html 더 많은 정보가 있습니다. 페이지를 검색 할 수 있습니다. 먼저 조사를 해보십시오. 키보드 레이아웃을 만드는 방법을 설명하지도 않습니다. http : //code.google.com/p/hackerskeyboard/ – user1708101

+0

http://grepcode.com/file/repository.grepcode.com/java/ext /com.google.android/android-apps/4.0.1_r1/com/example/android/softkeyboard/SoftKeyboard.java http://www.java2s.com/Code/Android/User-Event/ 키보드 입력 방법 입력 예제 쓰기 실제로는 똑같습니다 (안드로이드 예제 키보드가 작동하지 않습니다) http://stackoverflow.com/questions/1858950/set-custom-keyboard-for-android-application http : // stackoverflow.co.kr/questions/5091674/creating-custom-android-keyboard-layout 내가 묻는 것이 아니기 때문입니다. http://code.google.com/p/softkeyboard/ 시도해 보겠습니다. – user1708101