Troubles with AndroidSlidingUpPanel with Eclipse - Error Inflating class

前端 未结 1 781
再見小時候
再見小時候 2020-12-22 04:42

I\'m trying to use the AndroidSlidingUpPanel library (in Eclipse) and I have this error:

04-19 20:09:48.413: E/AndroidRuntime(13760): java.lang.RuntimeExcept         


        
1条回答
  •  抹茶落季
    2020-12-22 05:10

    I just got it working in Eclipse.

    The important part is to get your library project created correctly and then link it up to your main project.

    For the library project, I created a project.properties file, and also added the jar files for the RecyclerView library, the support v4 library, and nineoldandroids.

    I also created a .classpath file in order to make it automatically put the java folder in the build path.

    I uploaded the library project that I got working to github: https://github.com/dmnugent80/SlidingUpPanel-for-Eclipse/tree/master

    Then, import the library project into your workspace:

    Set it up as a dependency of the main project:

    So, you end up with something like this:

    Then, using this test xml (your xml threw an error about needing a minimum of two children):

    
    
    
        
        
            
        
    
        
        
    
            
    
                
    
                

    It works!

    0 讨论(0)
提交回复
热议问题