"No XML content. Please add a root view or layout to your document"

Posted by evc on Stack Overflow See other posts from Stack Overflow or by evc
Published on 2012-04-03T05:53:18Z Indexed on 2012/11/09 17:00 UTC
Read the original article Hit count: 190

Filed under:
|
|

I am trying to code a softkeyboard for 2.1 and up when I code ( see code below) in the main.xml graphical view is displays nothing and says No XML content. Please add a root view or layout to your document" I have tried to place the code in textview but still no luck I can not get the softkeyboard to show at all, its as if my code is being ignored..I have tried these two codes separately nothing works

<com.example.android.softkeyboard.LatinKeyboardView
xmlns:android="http://schemas.android.com/apk/res/android"

    android:id="@+id/keyboard"
    android:layout_alignParentBottom="true"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
/>
<Keyboard
    android:keyWidth="%10p"
    android:keyHeight="50px"
    android:horizontalGap="2px"
    android:verticalGap="2px" >
   <Row android:keyWidth="32px" >
   <Key android:keyLabel="A" />
...
</Row>
...
</Keyboard>

© Stack Overflow or respective owner

Related posts about android

Related posts about Xml