{"action":"created","issue":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/373","repository_url":"https://api.github.com/repos/JakeWharton/RxBinding","labels_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/373/comments","events_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/373/events","html_url":"https://github.com/JakeWharton/RxBinding/issues/373","id":218114723,"number":373,"title":"RxView.clicks  and RxView.touches  used at the same time, only RxView.touches is useful","user":{"login":"fengdesola","id":7188399,"avatar_url":"https://avatars0.githubusercontent.com/u/7188399?v=3","gravatar_id":"","url":"https://api.github.com/users/fengdesola","html_url":"https://github.com/fengdesola","followers_url":"https://api.github.com/users/fengdesola/followers","following_url":"https://api.github.com/users/fengdesola/following{/other_user}","gists_url":"https://api.github.com/users/fengdesola/gists{/gist_id}","starred_url":"https://api.github.com/users/fengdesola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengdesola/subscriptions","organizations_url":"https://api.github.com/users/fengdesola/orgs","repos_url":"https://api.github.com/users/fengdesola/repos","events_url":"https://api.github.com/users/fengdesola/events{/privacy}","received_events_url":"https://api.github.com/users/fengdesola/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-30T08:11:53Z","updated_at":"2017-04-05T06:58:00Z","closed_at":"2017-04-05T06:58:00Z","body":"Hi Jake and everyone! Thanks for excellent job!\r\n\r\nI think RxView.touches intercepted android event.How to change?\r\n\r\nHere is the my code:\r\n`RxView.clicks(tvEffect).subscribe(o-> {showToast(\"click effect\");});`\r\n\r\n`\r\nConnectableObservable<MotionEvent> motionEventObservable = RxView.touches(v).publish();\r\n\r\n        // Capture down events\r\n        motionEventObservable\r\n                .filter(new Predicate<MotionEvent>() {\r\n                    @Override\r\n                    public boolean test(@NonNull MotionEvent motionEvent) throws Exception {\r\n                        return motionEvent.getAction() == MotionEvent.ACTION_DOWN;\r\n                    }\r\n                }).subscribe(new Consumer<MotionEvent>() {\r\n                    @Override\r\n                    public void accept(@NonNull MotionEvent motionEvent) throws Exception {\r\n                        ObjectAnimator.ofFloat(v, \"alpha\",1.0f,0.3f).start();\r\n                    }\r\n                });\r\n        // Capture up/cancel events\r\n        motionEventObservable\r\n                .filter(new Predicate<MotionEvent>() {\r\n                    @Override\r\n                    public boolean test(@NonNull MotionEvent motionEvent) throws Exception {\r\n                        return motionEvent.getAction() == MotionEvent.ACTION_UP\r\n                                || motionEvent.getAction() == MotionEvent.ACTION_CANCEL;\r\n                    }\r\n                }).subscribe(new Consumer<MotionEvent>() {\r\n            @Override\r\n            public void accept(@NonNull MotionEvent motionEvent) throws Exception {\r\n                ObjectAnimator.ofFloat(v, \"alpha\",0.3f,1.0f).start();\r\n            }\r\n        });\r\n        motionEventObservable.connect();`"},"comment":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/comments/291771756","html_url":"https://github.com/JakeWharton/RxBinding/issues/373#issuecomment-291771756","issue_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/373","id":291771756,"user":{"login":"fengdesola","id":7188399,"avatar_url":"https://avatars0.githubusercontent.com/u/7188399?v=3","gravatar_id":"","url":"https://api.github.com/users/fengdesola","html_url":"https://github.com/fengdesola","followers_url":"https://api.github.com/users/fengdesola/followers","following_url":"https://api.github.com/users/fengdesola/following{/other_user}","gists_url":"https://api.github.com/users/fengdesola/gists{/gist_id}","starred_url":"https://api.github.com/users/fengdesola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengdesola/subscriptions","organizations_url":"https://api.github.com/users/fengdesola/orgs","repos_url":"https://api.github.com/users/fengdesola/repos","events_url":"https://api.github.com/users/fengdesola/events{/privacy}","received_events_url":"https://api.github.com/users/fengdesola/received_events","type":"User","site_admin":false},"created_at":"2017-04-05T06:58:00Z","updated_at":"2017-04-05T06:58:00Z","body":"@Joseph82 @JakeWharton  thanks!\r\nAfter reading ViewTouchObservable, I know why."}}
{"actor":{"display_login":"fengdesola"}}