2012-04-03 3 views
0
"<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

시작 부분에 을 자르다. – evc

답변

3

그것은 당신의 XML 키보드 레이아웃 파일이 구성 요소 중 일부에 대한 android:layout_width 및/또는 android:layout_height이 누락되어 있음을 의미한다. 당신이 res/layout 폴더에 키보드 레이아웃 파일을 가하고 있습니다처럼

두 번째 눈에 편집

, 그것은 보인다. 그것은 res/xml 폴더에 속합니다.

+0

그것은 내 코드가 틀릴 것임에 틀림 없다라고하는 일을 doesnt한다. ... 나는 무엇을해야하는지에 관해 모른다. – evc

+0

@evc - 갱신 된 대답을 보라 –

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"> 
+0

나는 그랬지만 행운이 없다.이 softkeyboard가 그래픽보기에 표시되지 않고 오류를주고있는 이유를 알 수 없다. SDK 키보드 샘플을 사용하고있다 ... :( – evc

+0

오, 그것을 다시보고 난 후에 나는 그것이 일어나는 것을 볼 수있게한다 – evc

관련 문제