{"action":"created","issue":{"url":"https://api.github.com/repos/android/android-ktx/issues/200","repository_url":"https://api.github.com/repos/android/android-ktx","labels_url":"https://api.github.com/repos/android/android-ktx/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/android/android-ktx/issues/200/comments","events_url":"https://api.github.com/repos/android/android-ktx/issues/200/events","html_url":"https://github.com/android/android-ktx/issues/200","id":294716407,"number":200,"title":"Set elevation to View","user":{"login":"AkshayChordiya","id":3120052,"avatar_url":"https://avatars1.githubusercontent.com/u/3120052?v=4","gravatar_id":"","url":"https://api.github.com/users/AkshayChordiya","html_url":"https://github.com/AkshayChordiya","followers_url":"https://api.github.com/users/AkshayChordiya/followers","following_url":"https://api.github.com/users/AkshayChordiya/following{/other_user}","gists_url":"https://api.github.com/users/AkshayChordiya/gists{/gist_id}","starred_url":"https://api.github.com/users/AkshayChordiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkshayChordiya/subscriptions","organizations_url":"https://api.github.com/users/AkshayChordiya/orgs","repos_url":"https://api.github.com/users/AkshayChordiya/repos","events_url":"https://api.github.com/users/AkshayChordiya/events{/privacy}","received_events_url":"https://api.github.com/users/AkshayChordiya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-06T10:58:41Z","updated_at":"2018-02-06T12:17:10Z","closed_at":"2018-02-06T11:53:59Z","author_association":"NONE","body":"Adding an extension function to easily set elevation to `View`.\r\n\r\n```\r\ninfix fun View.elevate(elevation: Float) {\r\n    ViewCompat.setElevation(this, elevation)\r\n}\r\n```\r\n\r\nI'm not sure if this should be part of android-ktx for framework or support library. I'm slightly baised towards support library but I see `ViewCompat` already used in [View.kt](https://github.com/android/android-ktx/blob/master/src/main/java/androidx/view/View.kt), hence the issue."},"comment":{"url":"https://api.github.com/repos/android/android-ktx/issues/comments/363405197","html_url":"https://github.com/android/android-ktx/issues/200#issuecomment-363405197","issue_url":"https://api.github.com/repos/android/android-ktx/issues/200","id":363405197,"user":{"login":"AkshayChordiya","id":3120052,"avatar_url":"https://avatars1.githubusercontent.com/u/3120052?v=4","gravatar_id":"","url":"https://api.github.com/users/AkshayChordiya","html_url":"https://github.com/AkshayChordiya","followers_url":"https://api.github.com/users/AkshayChordiya/followers","following_url":"https://api.github.com/users/AkshayChordiya/following{/other_user}","gists_url":"https://api.github.com/users/AkshayChordiya/gists{/gist_id}","starred_url":"https://api.github.com/users/AkshayChordiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkshayChordiya/subscriptions","organizations_url":"https://api.github.com/users/AkshayChordiya/orgs","repos_url":"https://api.github.com/users/AkshayChordiya/repos","events_url":"https://api.github.com/users/AkshayChordiya/events{/privacy}","received_events_url":"https://api.github.com/users/AkshayChordiya/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T12:17:10Z","updated_at":"2018-02-06T12:17:10Z","author_association":"NONE","body":"I agree with you @daberni and I am totally waiting for extensions for Android Support Library. But the only reason I created this issue is because I found `ViewCompat` already being used in [View.kt](https://github.com/android/android-ktx/blob/master/src/main/java/androidx/view/View.kt) which made me curious."}}
{"actor":{"display_login":"AkshayChordiya"}}