{"action":"created","comment":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments/38289454","id":38289454,"diff_hunk":"@@ -0,0 +1,48 @@\n+package com.jakewharton.rxbinding.support.v7.widget;\n+\n+import android.support.v7.widget.RecyclerView;\n+import android.view.View;\n+import com.jakewharton.rxbinding.internal.MainThreadSubscription;\n+import rx.Observable;\n+import rx.Subscriber;\n+\n+import static com.jakewharton.rxbinding.internal.Preconditions.checkUiThread;\n+\n+public class RecyclerViewItemClickOnSubscribe implements Observable.OnSubscribe<Integer> {\n+\n+  private final RecyclerView recyclerView;\n+\n+  public RecyclerViewItemClickOnSubscribe(RecyclerView recyclerView) {\n+    this.recyclerView = recyclerView;\n+  }\n+\n+  @Override public void call(final Subscriber<? super Integer> subscriber) {\n+    checkUiThread();\n+\n+    final RecyclerView.OnChildAttachStateChangeListener childAttachStateChangeListener =\n+        new RecyclerView.OnChildAttachStateChangeListener() {\n+          @Override public void onChildViewAttachedToWindow(View view) {\n+            recyclerView.getChildViewHolder(view).itemView.setOnClickListener(","path":"rxbinding-recyclerview-v7/src/main/java/com/jakewharton/rxbinding/support/v7/widget/RecyclerViewItemClickOnSubscribe.java","position":25,"original_position":25,"commit_id":"bdecca31c33b1016fedc4fd30f28dfa3d90550e3","original_commit_id":"00118af08c6ccc5368905d1ba7bfaa949cadb672","user":{"login":"xfumihiro","id":12194969,"avatar_url":"https://avatars.githubusercontent.com/u/12194969?v=3","gravatar_id":"","url":"https://api.github.com/users/xfumihiro","html_url":"https://github.com/xfumihiro","followers_url":"https://api.github.com/users/xfumihiro/followers","following_url":"https://api.github.com/users/xfumihiro/following{/other_user}","gists_url":"https://api.github.com/users/xfumihiro/gists{/gist_id}","starred_url":"https://api.github.com/users/xfumihiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfumihiro/subscriptions","organizations_url":"https://api.github.com/users/xfumihiro/orgs","repos_url":"https://api.github.com/users/xfumihiro/repos","events_url":"https://api.github.com/users/xfumihiro/events{/privacy}","received_events_url":"https://api.github.com/users/xfumihiro/received_events","type":"User","site_admin":false},"body":"To me the library API is clear enough: RxRecyclerView.itemClicks indicates item(in this case, the whole ViewHolder) click events. If user wants something different, they should use RxView.clicks.","created_at":"2015-08-31T07:24:04Z","updated_at":"2015-08-31T07:24:04Z","html_url":"https://github.com/JakeWharton/RxBinding/pull/115#discussion_r38289454","pull_request_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments/38289454"},"html":{"href":"https://github.com/JakeWharton/RxBinding/pull/115#discussion_r38289454"},"pull_request":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115","id":43690765,"html_url":"https://github.com/JakeWharton/RxBinding/pull/115","diff_url":"https://github.com/JakeWharton/RxBinding/pull/115.diff","patch_url":"https://github.com/JakeWharton/RxBinding/pull/115.patch","issue_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/115","number":115,"state":"open","locked":false,"title":"Add RecyclerView item click binding","user":{"login":"xfumihiro","id":12194969,"avatar_url":"https://avatars.githubusercontent.com/u/12194969?v=3","gravatar_id":"","url":"https://api.github.com/users/xfumihiro","html_url":"https://github.com/xfumihiro","followers_url":"https://api.github.com/users/xfumihiro/followers","following_url":"https://api.github.com/users/xfumihiro/following{/other_user}","gists_url":"https://api.github.com/users/xfumihiro/gists{/gist_id}","starred_url":"https://api.github.com/users/xfumihiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfumihiro/subscriptions","organizations_url":"https://api.github.com/users/xfumihiro/orgs","repos_url":"https://api.github.com/users/xfumihiro/repos","events_url":"https://api.github.com/users/xfumihiro/events{/privacy}","received_events_url":"https://api.github.com/users/xfumihiro/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-29T07:52:10Z","updated_at":"2015-08-31T07:24:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ea0e1382525bfb1c450990910372ea9c5e24d4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115/commits","review_comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115/comments","review_comment_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/115/comments","statuses_url":"https://api.github.com/repos/JakeWharton/RxBinding/statuses/bdecca31c33b1016fedc4fd30f28dfa3d90550e3","head":{"label":"xfumihiro:master","ref":"master","sha":"bdecca31c33b1016fedc4fd30f28dfa3d90550e3","user":{"login":"xfumihiro","id":12194969,"avatar_url":"https://avatars.githubusercontent.com/u/12194969?v=3","gravatar_id":"","url":"https://api.github.com/users/xfumihiro","html_url":"https://github.com/xfumihiro","followers_url":"https://api.github.com/users/xfumihiro/followers","following_url":"https://api.github.com/users/xfumihiro/following{/other_user}","gists_url":"https://api.github.com/users/xfumihiro/gists{/gist_id}","starred_url":"https://api.github.com/users/xfumihiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfumihiro/subscriptions","organizations_url":"https://api.github.com/users/xfumihiro/orgs","repos_url":"https://api.github.com/users/xfumihiro/repos","events_url":"https://api.github.com/users/xfumihiro/events{/privacy}","received_events_url":"https://api.github.com/users/xfumihiro/received_events","type":"User","site_admin":false},"repo":{"id":41293911,"name":"RxBinding","full_name":"xfumihiro/RxBinding","owner":{"login":"xfumihiro","id":12194969,"avatar_url":"https://avatars.githubusercontent.com/u/12194969?v=3","gravatar_id":"","url":"https://api.github.com/users/xfumihiro","html_url":"https://github.com/xfumihiro","followers_url":"https://api.github.com/users/xfumihiro/followers","following_url":"https://api.github.com/users/xfumihiro/following{/other_user}","gists_url":"https://api.github.com/users/xfumihiro/gists{/gist_id}","starred_url":"https://api.github.com/users/xfumihiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfumihiro/subscriptions","organizations_url":"https://api.github.com/users/xfumihiro/orgs","repos_url":"https://api.github.com/users/xfumihiro/repos","events_url":"https://api.github.com/users/xfumihiro/events{/privacy}","received_events_url":"https://api.github.com/users/xfumihiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xfumihiro/RxBinding","description":"RxJava binding APIs for Android's UI widgets.","fork":true,"url":"https://api.github.com/repos/xfumihiro/RxBinding","forks_url":"https://api.github.com/repos/xfumihiro/RxBinding/forks","keys_url":"https://api.github.com/repos/xfumihiro/RxBinding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xfumihiro/RxBinding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xfumihiro/RxBinding/teams","hooks_url":"https://api.github.com/repos/xfumihiro/RxBinding/hooks","issue_events_url":"https://api.github.com/repos/xfumihiro/RxBinding/issues/events{/number}","events_url":"https://api.github.com/repos/xfumihiro/RxBinding/events","assignees_url":"https://api.github.com/repos/xfumihiro/RxBinding/assignees{/user}","branches_url":"https://api.github.com/repos/xfumihiro/RxBinding/branches{/branch}","tags_url":"https://api.github.com/repos/xfumihiro/RxBinding/tags","blobs_url":"https://api.github.com/repos/xfumihiro/RxBinding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xfumihiro/RxBinding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xfumihiro/RxBinding/git/refs{/sha}","trees_url":"https://api.github.com/repos/xfumihiro/RxBinding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xfumihiro/RxBinding/statuses/{sha}","languages_url":"https://api.github.com/repos/xfumihiro/RxBinding/languages","stargazers_url":"https://api.github.com/repos/xfumihiro/RxBinding/stargazers","contributors_url":"https://api.github.com/repos/xfumihiro/RxBinding/contributors","subscribers_url":"https://api.github.com/repos/xfumihiro/RxBinding/subscribers","subscription_url":"https://api.github.com/repos/xfumihiro/RxBinding/subscription","commits_url":"https://api.github.com/repos/xfumihiro/RxBinding/commits{/sha}","git_commits_url":"https://api.github.com/repos/xfumihiro/RxBinding/git/commits{/sha}","comments_url":"https://api.github.com/repos/xfumihiro/RxBinding/comments{/number}","issue_comment_url":"https://api.github.com/repos/xfumihiro/RxBinding/issues/comments{/number}","contents_url":"https://api.github.com/repos/xfumihiro/RxBinding/contents/{+path}","compare_url":"https://api.github.com/repos/xfumihiro/RxBinding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xfumihiro/RxBinding/merges","archive_url":"https://api.github.com/repos/xfumihiro/RxBinding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xfumihiro/RxBinding/downloads","issues_url":"https://api.github.com/repos/xfumihiro/RxBinding/issues{/number}","pulls_url":"https://api.github.com/repos/xfumihiro/RxBinding/pulls{/number}","milestones_url":"https://api.github.com/repos/xfumihiro/RxBinding/milestones{/number}","notifications_url":"https://api.github.com/repos/xfumihiro/RxBinding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xfumihiro/RxBinding/labels{/name}","releases_url":"https://api.github.com/repos/xfumihiro/RxBinding/releases{/id}","created_at":"2015-08-24T09:17:43Z","updated_at":"2015-08-24T09:17:46Z","pushed_at":"2015-08-31T05:22:47Z","git_url":"git://github.com/xfumihiro/RxBinding.git","ssh_url":"git@github.com:xfumihiro/RxBinding.git","clone_url":"https://github.com/xfumihiro/RxBinding.git","svn_url":"https://github.com/xfumihiro/RxBinding","homepage":"","size":442,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JakeWharton:master","ref":"master","sha":"366ca7fbc16459705ad3add9fe5e5b7d6936d28c","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"repo":{"id":32775739,"name":"RxBinding","full_name":"JakeWharton/RxBinding","owner":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JakeWharton/RxBinding","description":"RxJava binding APIs for Android's UI widgets.","fork":false,"url":"https://api.github.com/repos/JakeWharton/RxBinding","forks_url":"https://api.github.com/repos/JakeWharton/RxBinding/forks","keys_url":"https://api.github.com/repos/JakeWharton/RxBinding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JakeWharton/RxBinding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JakeWharton/RxBinding/teams","hooks_url":"https://api.github.com/repos/JakeWharton/RxBinding/hooks","issue_events_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/events{/number}","events_url":"https://api.github.com/repos/JakeWharton/RxBinding/events","assignees_url":"https://api.github.com/repos/JakeWharton/RxBinding/assignees{/user}","branches_url":"https://api.github.com/repos/JakeWharton/RxBinding/branches{/branch}","tags_url":"https://api.github.com/repos/JakeWharton/RxBinding/tags","blobs_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/refs{/sha}","trees_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JakeWharton/RxBinding/statuses/{sha}","languages_url":"https://api.github.com/repos/JakeWharton/RxBinding/languages","stargazers_url":"https://api.github.com/repos/JakeWharton/RxBinding/stargazers","contributors_url":"https://api.github.com/repos/JakeWharton/RxBinding/contributors","subscribers_url":"https://api.github.com/repos/JakeWharton/RxBinding/subscribers","subscription_url":"https://api.github.com/repos/JakeWharton/RxBinding/subscription","commits_url":"https://api.github.com/repos/JakeWharton/RxBinding/commits{/sha}","git_commits_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/commits{/sha}","comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/comments{/number}","issue_comment_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/comments{/number}","contents_url":"https://api.github.com/repos/JakeWharton/RxBinding/contents/{+path}","compare_url":"https://api.github.com/repos/JakeWharton/RxBinding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JakeWharton/RxBinding/merges","archive_url":"https://api.github.com/repos/JakeWharton/RxBinding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JakeWharton/RxBinding/downloads","issues_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues{/number}","pulls_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls{/number}","milestones_url":"https://api.github.com/repos/JakeWharton/RxBinding/milestones{/number}","notifications_url":"https://api.github.com/repos/JakeWharton/RxBinding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JakeWharton/RxBinding/labels{/name}","releases_url":"https://api.github.com/repos/JakeWharton/RxBinding/releases{/id}","created_at":"2015-03-24T04:17:24Z","updated_at":"2015-08-30T20:08:19Z","pushed_at":"2015-08-31T05:31:10Z","git_url":"git://github.com/JakeWharton/RxBinding.git","ssh_url":"git@github.com:JakeWharton/RxBinding.git","clone_url":"https://github.com/JakeWharton/RxBinding.git","svn_url":"https://github.com/JakeWharton/RxBinding","homepage":"","size":1714,"stargazers_count":838,"watchers_count":838,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":16,"forks":57,"open_issues":16,"watchers":838,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115"},"html":{"href":"https://github.com/JakeWharton/RxBinding/pull/115"},"issue":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/issues/115"},"comments":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/statuses/bdecca31c33b1016fedc4fd30f28dfa3d90550e3"}}}}