{"action":"reopened","issue":{"url":"https://api.github.com/repos/lsjwzh/RecyclerViewPager/issues/20","labels_url":"https://api.github.com/repos/lsjwzh/RecyclerViewPager/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/lsjwzh/RecyclerViewPager/issues/20/comments","events_url":"https://api.github.com/repos/lsjwzh/RecyclerViewPager/issues/20/events","html_url":"https://github.com/lsjwzh/RecyclerViewPager/issues/20","id":91601424,"number":20,"title":"No other view can be put before recyclerviewpager?","user":{"login":"rush0621","id":1003504,"avatar_url":"https://avatars.githubusercontent.com/u/1003504?v=3","gravatar_id":"","url":"https://api.github.com/users/rush0621","html_url":"https://github.com/rush0621","followers_url":"https://api.github.com/users/rush0621/followers","following_url":"https://api.github.com/users/rush0621/following{/other_user}","gists_url":"https://api.github.com/users/rush0621/gists{/gist_id}","starred_url":"https://api.github.com/users/rush0621/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rush0621/subscriptions","organizations_url":"https://api.github.com/users/rush0621/orgs","repos_url":"https://api.github.com/users/rush0621/repos","events_url":"https://api.github.com/users/rush0621/events{/privacy}","received_events_url":"https://api.github.com/users/rush0621/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-28T13:50:13Z","updated_at":"2015-07-01T12:11:19Z","closed_at":null,"body":"i have tried to use com.lsjwzh.widget.recyclerviewpager.RecyclerViewPager and some other elements, but no luck, error occured. I found that if there is any viewgroup set before the RecyclerViewPager, it will crash.\r\n\r\n <LinearLayout\r\n        android:id=\"@+id/test3\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\">\r\n\r\n        <ImageView\r\n            android:id=\"@+id/test\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"match_parent\"\r\n            android:layout_gravity=\"left\"\r\n            android:contentDescription=\"@null\" />\r\n    </LinearLayout>\r\n\r\n    <com.lsjwzh.widget.recyclerviewpager.RecyclerViewPager\r\n        android:id=\"@+id/sliding_viewpager\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"0dp\"\r\n        android:layout_weight=\"1\"\r\n        android:background=\"@android:color/transparent\" />\r\n\r\nthe above xml layout will give error ClassCastException: android.widget.ImageView cannot be cast to android.view.ViewGroup"}}