java - Troubles with AndroidSlidingUpPanel with Eclipse - Error Inflating class -


i'm trying use androidslidinguppanel library (in eclipse) , have error:

04-19 20:09:48.413: e/androidruntime(13760): java.lang.runtimeexception: unable 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 

this layout:

<?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 downloaded entire project , imported "main" library. add library project's java build path. have feeling java build path problem. idea?

thank reading me , take time it.

i got working in eclipse.

the important part library project created correctly , link main project.

for library project, created project.properties file, , added jar files recyclerview library, support v4 library, , nineoldandroids.

i created .classpath file in order make automatically put java folder in build path.

i uploaded library project got working github: https://github.com/dmnugent80/slidinguppanel-for-eclipse/tree/master

then, import library project workspace:

enter image description here

set dependency of main project:

enter image description here

so, end this:

enter image description here

then, using test xml (your xml threw error needing minimum of 2 children):

<?xml version="1.0" encoding="utf-8"?> <com.sothree.slidinguppanel.slidinguppanellayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     xmlns:sothree="http://schemas.android.com/apk/res-auto"     android:id="@+id/sliding_layout"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:gravity="bottom"     sothree:umanopanelheight="68dp"     sothree:umanoshadowheight="4dp"     sothree:umanoparallaxoffset="100dp"     sothree:umanodragview="@+id/dragview"     sothree:umanooverlay="true"     sothree:umanoscrollableview="@+id/list">      <!-- main content -->     <framelayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:orientation="vertical">         <textview             android:id="@+id/main"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:layout_margintop="30dp"             android:gravity="center"             android:text="main content"             android:clickable="true"             android:focusable="false"             android:focusableintouchmode="true"             android:textsize="16sp" />     </framelayout>      <!-- sliding layout -->     <linearlayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:background="#ffffff"         android:orientation="vertical"         android:clickable="true"         android:focusable="false"         android:id="@+id/dragview">          <linearlayout             android:layout_width="match_parent"             android:layout_height="68dp"             android:orientation="horizontal">              <textview                 android:id="@+id/name"                 android:layout_width="0dp"                 android:layout_height="match_parent"                 android:layout_weight="1"                 android:textsize="14sp"                 android:gravity="center_vertical"                 android:paddingleft="10dp"/>              <button                 android:id="@+id/follow"                 android:layout_width="wrap_content"                 android:layout_height="match_parent"                 android:textsize="14sp"                 android:gravity="center_vertical|right"                 android:paddingright="10dp"                 android:paddingleft="10dp"/>          </linearlayout>          <listview             android:id="@+id/list"             android:layout_width="match_parent"             android:layout_height="0dp"             android:layout_weight="1">         </listview>     </linearlayout> </com.sothree.slidinguppanel.slidinguppanellayout> 

it works!

enter image description here


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -