You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/05 11:19:26 UTC
[22/29] incubator-weex git commit: * [android] recycler component
support scrollable attribute
* [android] recycler component support scrollable attribute
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/e37d14f7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/e37d14f7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/e37d14f7
Branch: refs/heads/0.11-dev
Commit: e37d14f7f8c1bda1a569d46762a14e69d15ca3fa
Parents: dee9b6d
Author: zshshr <zh...@gmail.com>
Authored: Mon Feb 27 11:43:08 2017 +0800
Committer: zshshr <zh...@gmail.com>
Committed: Mon Feb 27 11:43:08 2017 +0800
----------------------------------------------------------------------
.../com/taobao/weex/ui/component/list/WXListComponent.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e37d14f7/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
index b8c0a31..7e1d86d 100755
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/list/WXListComponent.java
@@ -352,6 +352,12 @@ public class WXListComponent extends BasicListComponent<BounceRecyclerView> {
}
}
+ @WXComponentProp(name = Constants.Name.SCROLLABLE)
+ public void setScrollable(boolean scrollable) {
+ WXRecyclerView inner = getHostView().getInnerView();
+ inner.setScrollable(scrollable);
+ }
+
@Override
public void updateProperties(Map<String, Object> props) {
super.updateProperties(props);