Sunday, 15 August 2010

android - @ContentView in Sliding Menu activity -



android - @ContentView in Sliding Menu activity -

i'm trying inject contentview after extending slidingfragmentactivity sliding menu library. i'm getting error

java.lang.illegalstateexception: both setbehindcontentview must called in oncreate in add-on setcontentview".

but works fine if set content within oncreate. can 1 suggest solution this?

you have phone call setbehindcontentview when using @contentview. @contentview annotation calls setcontentview in oncreate of super class (roboactivity), not setbehindcontentview.

android roboguice slidingmenu

No comments:

Post a Comment