{"action":"opened","issue":{"url":"https://api.github.com/repos/apache/incubator-weex/issues/2317","repository_url":"https://api.github.com/repos/apache/incubator-weex","labels_url":"https://api.github.com/repos/apache/incubator-weex/issues/2317/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-weex/issues/2317/comments","events_url":"https://api.github.com/repos/apache/incubator-weex/issues/2317/events","html_url":"https://github.com/apache/incubator-weex/issues/2317","id":433132095,"node_id":"MDU6SXNzdWU0MzMxMzIwOTU=","number":2317,"title":"[Android]自定义WXVContainer时使用fireEvent自定义事件weex页面不响应事件，用fireGlobalEventCallback可以","user":{"login":"wangxiongtao","id":29773333,"node_id":"MDQ6VXNlcjI5NzczMzMz","avatar_url":"https://avatars2.githubusercontent.com/u/29773333?v=4","gravatar_id":"","url":"https://api.github.com/users/wangxiongtao","html_url":"https://github.com/wangxiongtao","followers_url":"https://api.github.com/users/wangxiongtao/followers","following_url":"https://api.github.com/users/wangxiongtao/following{/other_user}","gists_url":"https://api.github.com/users/wangxiongtao/gists{/gist_id}","starred_url":"https://api.github.com/users/wangxiongtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangxiongtao/subscriptions","organizations_url":"https://api.github.com/users/wangxiongtao/orgs","repos_url":"https://api.github.com/users/wangxiongtao/repos","events_url":"https://api.github.com/users/wangxiongtao/events{/privacy}","received_events_url":"https://api.github.com/users/wangxiongtao/received_events","type":"User","site_admin":false},"labels":[{"id":512824651,"node_id":"MDU6TGFiZWw1MTI4MjQ2NTE=","url":"https://api.github.com/repos/apache/incubator-weex/labels/Bug","name":"Bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-15T07:25:22Z","updated_at":"2019-04-15T07:25:22Z","closed_at":null,"author_association":"NONE","body":"Android 代码\r\n@Component(lazyload = false)\r\npublic class WXRefreshLayout extends WXVContainer<DCRefreshLayout> {\r\n    private LinearLayout refreshLl;\r\n\r\n    public WXRefreshLayout(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData) {\r\n        super(instance, parent, basicComponentData);\r\n    }\r\n\r\n    @Override\r\n    protected DCRefreshLayout initComponentHostView(@NonNull Context context) {\r\n        DCRefreshLayout linearLayout = (DCRefreshLayout) View.inflate(context, R.layout.weex_refresh_layout, null);\r\n        refreshLl = linearLayout.findViewById(R.id.refresh_ll);\r\n\r\n        linearLayout.setOnRefreshAndLoadMoreListener(new OnRefreshAndLoadMoreListener() {\r\n            @Override\r\n            public void onRefresh(@NonNull RefreshLayout refreshLayout) {\r\n                getInstance().fireGlobalEventCallback(\"onRefresh\",null);\r\n            }\r\n\r\n            @Override\r\n            public void onLoadMore(@NonNull RefreshLayout refreshLayout) {\r\n                fireEvent(\"onLoadMore\");\r\n            }\r\n        });\r\n        return linearLayout;\r\n    }\r\n}\r\n\r\nweex 代码：<refresh-layout ref=\"refresh\"  @onLoadMore=\"onLoadMore\"/>\r\nonLoadMore事件不响应 "}}
{"actor":{"display_login":"wangxiongtao"}}