diff options
author | Yigit Boyar <yboyar@google.com> | 2015-03-13 15:58:53 -0700 |
---|---|---|
committer | Yigit Boyar <yboyar@google.com> | 2015-03-19 12:40:00 -0700 |
commit | a6e4583962e19e8e93b4ca3f9fe3d34560b6d96c (patch) | |
tree | dde75451f7a867c4f881a9bea623b02360d232a9 /extensions/baseAdapters/src/main/java/android/bindings/adapters/AbsListViewBindingAdapter.java | |
parent | 4c5cc009bcbcfb19e33fb19db5ec80f83f7b3326 (diff) | |
download | data-binding-a6e4583962e19e8e93b4ca3f9fe3d34560b6d96c.tar.gz |
Support for multi module setups
This CL adds support for building multi module apps
with proper context.
For library modules, we only generate base classes in the initial
compilation. We also generate a temporary BR file which does
not have final methods.
When final app is being generated, all layout binders, adapters
and Bindable information gets merged and all final classes
are generated in their appropriate packages.
This CL also adds support for Test runs and any
number of build variants.
Bug: 19714904
Change-Id: I9b50b54db05f3fa206eec33709d43c2ac94a9e5e
Diffstat (limited to 'extensions/baseAdapters/src/main/java/android/bindings/adapters/AbsListViewBindingAdapter.java')
-rw-r--r-- | extensions/baseAdapters/src/main/java/android/bindings/adapters/AbsListViewBindingAdapter.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/extensions/baseAdapters/src/main/java/android/bindings/adapters/AbsListViewBindingAdapter.java b/extensions/baseAdapters/src/main/java/android/bindings/adapters/AbsListViewBindingAdapter.java new file mode 100644 index 00000000..c8b481d4 --- /dev/null +++ b/extensions/baseAdapters/src/main/java/android/bindings/adapters/AbsListViewBindingAdapter.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2015 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.binding.adapters; + +import android.binding.BindingMethod; +import android.binding.BindingMethods; + +@BindingMethods({ + @BindingMethod(type = "android.widget.AbsListView", attribute = "android:listSelector", method = "setSelector"), + @BindingMethod(type = "android.widget.AbsListView", attribute = "android:scrollingCache", method = "setScrollingCacheEnabled"), + @BindingMethod(type = "android.widget.AbsListView", attribute = "android:smoothScrollbar", method = "setSmoothScrollbarEnabled"), +}) +public class AbsListViewBindingAdapter { + +} |