{"action":"reopened","issue":{"url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/461","repository_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper","labels_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/461/comments","events_url":"https://api.github.com/repos/CymChad/BaseRecyclerViewAdapterHelper/issues/461/events","html_url":"https://github.com/CymChad/BaseRecyclerViewAdapterHelper/issues/461","id":186496395,"number":461,"title":"两个按钮叠加在一起，动态隐藏其中一个按钮，显示另一个按钮，点击事件还是之前的","user":{"login":"BaiShou","id":7632587,"avatar_url":"https://avatars.githubusercontent.com/u/7632587?v=3","gravatar_id":"","url":"https://api.github.com/users/BaiShou","html_url":"https://github.com/BaiShou","followers_url":"https://api.github.com/users/BaiShou/followers","following_url":"https://api.github.com/users/BaiShou/following{/other_user}","gists_url":"https://api.github.com/users/BaiShou/gists{/gist_id}","starred_url":"https://api.github.com/users/BaiShou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaiShou/subscriptions","organizations_url":"https://api.github.com/users/BaiShou/orgs","repos_url":"https://api.github.com/users/BaiShou/repos","events_url":"https://api.github.com/users/BaiShou/events{/privacy}","received_events_url":"https://api.github.com/users/BaiShou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-01T09:55:31Z","updated_at":"2016-11-01T10:17:04Z","closed_at":null,"body":"<FrameLayout\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\">\r\n\r\n                <Button\r\n                    android:id=\"@+id/btn_payment\"\r\n                    android:layout_width=\"60dp\"\r\n                    android:layout_height=\"30dp\"\r\n                    android:layout_gravity=\"right\"\r\n                    android:layout_marginTop=\"5dp\"\r\n                    android:background=\"@color/be_apart_from\"\r\n                    android:text=\"支付\"\r\n                    android:textSize=\"16sp\"\r\n                    android:visibility=\"gone\" />\r\n\r\n                <Button\r\n                    android:id=\"@+id/btn_complaint\"\r\n                    android:layout_width=\"60dp\"\r\n                    android:layout_height=\"30dp\"\r\n                    android:layout_gravity=\"right\"\r\n                    android:layout_marginTop=\"5dp\"\r\n                    android:background=\"@color/be_apart_from\"\r\n                    android:text=\"投诉\"\r\n                    android:textSize=\"16sp\"\r\n                    android:visibility=\"gone\" />\r\n            </FrameLayout>\r\n\r\n这样的两个按钮，中途刷新动态改变按钮隐藏状态，点击事件还是之前的\r\nButton payment = helper.getView(R.id.btn_payment);\r\n        Button complaint = helper.getView(R.id.btn_complaint);\r\n        if (isPayment) {\r\n            payment.setVisibility(View.VISIBLE);\r\n            complaint.setVisibility(View.GONE);\r\n        } else {\r\n            complaint.setVisibility(View.VISIBLE);\r\n            payment.setVisibility(View.GONE);\r\n        }\r\n\r\n使用的是\r\n.addOnClickListener(R.id.btn_payment)\r\n .addOnClickListener(R.id.btn_complaint);\r\n添加的子控件点击事件"}}
{"actor":{"display_login":"BaiShou"}}