“Kein XML-Inhalt. Bitte fügen Sie eine root-view oder layout für Ihr Dokument"
Ich versuche code ein softkeyboard für 2.1 und als ich den code ( siehe code unten) in der main.xml grafische Ansicht zeigt nichts an und sagt, dass Kein XML-Inhalt. Bitte fügen Sie eine root-view oder layout für Ihr Dokument" ich habe versucht, den code in textview, aber noch kein Glück ich kann nicht die softkeyboard zu zeigen, als ob mein code wird ignoriert..ich habe versucht diese beiden codes separat funktioniert nichts
<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>
InformationsquelleAutor evc | 2012-04-03
Du musst angemeldet sein, um einen Kommentar abzugeben.
Bitte fügen Sie Ihren code in linearer Anordnung
InformationsquelleAutor user936414
Muss ein
layout
wie verhält es sich wie ein Fundament für Ihre Benutzeroberfläche. Alles, was Sie tun müssen, ist folgende:ODER
Linear Layout
undRelative Layout
sind die am meisten verwendeten layouts in android UI. Finden Sie das tutorial fürLinear Layout
aus hier und das tutorial fürRelative Layout
aus hier.Hoffe, das hilft.
InformationsquelleAutor Ghost