"<Keyboard>" does not set the required layout_height attribute:
(1) Set to "wrap_content"
(2) Set to "fill_parent"
"<Row>" does not set the required layout_width attribute:
(1) Set to "wrap_content"
(2) Set to "fill_parent"
"<Row>" does not set the required layout_height attribute:
(1) Set to "wrap_content"
(2) Set to "fill_parent"
"<Key>" does not set the required layout_width attribute:
(1) Set to "wrap_content"
(2) Set to "fill_parent"
"<Key>" does not set the required layout_height attribute:
(1) Set to "wrap_content"
(2) Set to "fill_parent"
com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
You must supply a layout_height attribute.
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)
- com.example.android.softkeyboard.LatinKeyboardView (Fix Build Path, Edit XML, Create Class)
0
A
回答
3
這意味着你的XML鍵盤佈局文件丟失了一些組件android:layout_width
和/或android:layout_height
。
編輯
在第二一目瞭然,它看起來像你把你的鍵盤佈局文件中的res/layout
文件夾中。它屬於res/xml
文件夾。
+0
它無法正常工作我的代碼一定是錯誤的....我不知道該怎麼辦.. – evc 2012-04-03 21:14:16
+0
@evc - 請參閱我更新的答案 – 2012-04-03 21:45:43
0
項目中的一個XML文件具有
「不設置所需layout_height屬性」的元素。
的每個元素,將其設置,例如:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
**android:layout_height="fill_parent"**
android:background="@android:color/transparent">
相關問題
- 1. 這些WndProc代碼是什麼意思?
- 2. 這些swift代碼是什麼意思?
- 3. 這些代碼行是什麼意思?
- 4. 這些代碼是什麼意思?
- 5. 這些C#代碼是什麼意思?
- 6. 這些代碼行是什麼意思?
- 7. 這些HPROF錯誤是什麼意思?
- 8. 這些MediaPlayer錯誤代碼是什麼意思?
- 9. GLSL錯誤:2001 - 這個錯誤代碼是什麼意思?
- 10. EIO錯誤代碼是什麼意思?
- 11. 「錯誤代碼:4004」是什麼意思?
- 12. 0x0F是什麼意思?這個代碼是什麼意思?
- 13. 這些是什麼意思?
- 14. 這是什麼錯誤代碼的意思是PHP
- 15. 這是什麼意思「預測屬性」?
- 16. 這段代碼是什麼意思...?
- 17. 這個CSS代碼是什麼意思?
- 18. 這段Ruby代碼是什麼意思?
- 19. 這段代碼是什麼意思?
- 20. 這段代碼是什麼意思?
- 21. 這個javascript代碼是什麼意思?
- 22. 這段代碼是什麼意思?
- 23. 這個.htaccess代碼是什麼意思?
- 24. 這段代碼是什麼意思?
- 25. 這段代碼是什麼意思?
- 26. 這個JS代碼是什麼意思?
- 27. 這個java代碼是什麼意思
- 28. 這個C++代碼是什麼意思
- 29. 這行代碼是什麼意思?
- 30. 這段代碼是什麼意思?
它切斷在開始 –
evc
2012-04-03 20:54:49