{"action":"created","issue":{"url":"https://api.github.com/repos/ethanhua/Skeleton/issues/11","repository_url":"https://api.github.com/repos/ethanhua/Skeleton","labels_url":"https://api.github.com/repos/ethanhua/Skeleton/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ethanhua/Skeleton/issues/11/comments","events_url":"https://api.github.com/repos/ethanhua/Skeleton/issues/11/events","html_url":"https://github.com/ethanhua/Skeleton/issues/11","id":303374039,"number":11,"title":"Not working with RootView as CoordinatorLayout","user":{"login":"varadmondkar","id":6836485,"avatar_url":"https://avatars0.githubusercontent.com/u/6836485?v=4","gravatar_id":"","url":"https://api.github.com/users/varadmondkar","html_url":"https://github.com/varadmondkar","followers_url":"https://api.github.com/users/varadmondkar/followers","following_url":"https://api.github.com/users/varadmondkar/following{/other_user}","gists_url":"https://api.github.com/users/varadmondkar/gists{/gist_id}","starred_url":"https://api.github.com/users/varadmondkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varadmondkar/subscriptions","organizations_url":"https://api.github.com/users/varadmondkar/orgs","repos_url":"https://api.github.com/users/varadmondkar/repos","events_url":"https://api.github.com/users/varadmondkar/events{/privacy}","received_events_url":"https://api.github.com/users/varadmondkar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-08T06:47:11Z","updated_at":"2018-03-14T04:03:49Z","closed_at":null,"author_association":"NONE","body":"First of all, Thank you for contributing such fabulous library. \r\n\r\nI am applying shimmering effect on a `View` and I am facing issue in one case. Case is, when I use **RootView** as `CoordinatorLayout` it doesn't work.\r\n\r\nCode in My Fragment onCreateView - \r\n\r\n```\r\nViewSkeletonScreen skeletonScreen = Skeleton.bind(shimmerLinearLayout)\r\n                .load(R.layout.layout_job_seeker_details_skeleton)\r\n                .color(R.color.white)\r\n                .show();\r\n\r\n```\r\n\r\nMy Fragment xml - \r\n```\r\n<android.support.design.widget.CoordinatorLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:id=\"@+id/shimmerLinearLayout\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    tools:context=\"com.varad.myapp.fragment.MainFragment\">\r\n\r\n    .... AppBarLayout ... NestedScrollView ....\r\n\r\n</android.support.design.widget.CoordinatorLayout>\r\n```\r\n\r\nBut when I include `LinearLayout` under `CoordinatorLayout` and assign id to `LinearLayout` it works. But if I use `LinearLayout` under `CoordinatorLayout` the scroll effect of `AppBarLayout` will not show any effect.\r\n\r\nUpdated Fragment xml - \r\n```\r\n<android.support.design.widget.CoordinatorLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    tools:context=\"com.varad.myapp.fragment.MainFragment\">\r\n\r\n    <LinearLayout\r\n        android:id=\"@+id/shimmerLinearLayout\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:orientation=\"vertical\">\r\n\r\n        .... AppBarLayout ... NestedScrollView ....\r\n\r\n    </LinearLayout>\r\n\r\n</android.support.design.widget.CoordinatorLayout>\r\n```\r\nWhy so?"},"comment":{"url":"https://api.github.com/repos/ethanhua/Skeleton/issues/comments/372897895","html_url":"https://github.com/ethanhua/Skeleton/issues/11#issuecomment-372897895","issue_url":"https://api.github.com/repos/ethanhua/Skeleton/issues/11","id":372897895,"user":{"login":"ethanhua","id":22186185,"avatar_url":"https://avatars2.githubusercontent.com/u/22186185?v=4","gravatar_id":"","url":"https://api.github.com/users/ethanhua","html_url":"https://github.com/ethanhua","followers_url":"https://api.github.com/users/ethanhua/followers","following_url":"https://api.github.com/users/ethanhua/following{/other_user}","gists_url":"https://api.github.com/users/ethanhua/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanhua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanhua/subscriptions","organizations_url":"https://api.github.com/users/ethanhua/orgs","repos_url":"https://api.github.com/users/ethanhua/repos","events_url":"https://api.github.com/users/ethanhua/events{/privacy}","received_events_url":"https://api.github.com/users/ethanhua/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T04:03:48Z","updated_at":"2018-03-14T04:03:48Z","author_association":"OWNER","body":"@varadmondkar  you can find log \r\n`com.ethanhua.skeleton.ViewSkeletonScreen: the source view have not attach to any view` \r\nin this case that useing skeleton in fragment and target view is rootview, you must call it in onViewCreated that the view have be attached to parentview"}}
{"actor":{"display_login":"ethanhua"}}