Ich versuche, die AndroidSlidingUpPanel library (in Eclipse) zu verwenden, und ich habe diesen Fehler:Troubles mit AndroidSlidingUpPanel mit Eclipse - Fehler Inflating Klasse
04-19 20:09:48.413: E/AndroidRuntime(13760): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mendozatourapp/com.mendozatourapp.activitys.MapsActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class com.sothree.slidinguppanel.library.SlidingUpPanelLayout
Das ist mein Layout ist:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DemoActivity" >
<com.sothree.slidinguppanel.SlidingUpPanelLayout
xmlns:sothree="http://schemas.android.com/apk/lib/res-auto"
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
sothree:panelHeight="68dp"
sothree:shadowHeight="4dp"
sothree:paralaxOffset="100dp"
sothree:dragView="@+id/name">
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
</RelativeLayout>
I lud das gesamte Projekt herunter und importierte "main" als Bibliothek. Dann füge ich diese Bibliothek dem Java-Buildpfad meines Projekts hinzu. Ich habe das Gefühl, dass dies ein Java Build Path Problem ist. Irgendeine Idee?
Vielen Dank für das Lesen und nehmen Sie sich Zeit, es zu tun.
Sie müssen es in ein Bibliotheksprojekt für Eclipse machen. Haben Sie der Bibliothek eine Datei 'project.properties' und eine Datei' AndroidManifest.xml' hinzugefügt? –
Ja, ich habe es getan. Vielen Dank. – flagg327