Binding Supplies utility library.
DataBindingAdapter is a RecyclerView.Adapter
implementation using DataBindingViewHolder
to
handle the view inflation and updates. The configuration of the binding happens within the provided
DataBindingAdapter.Binder
instances.
implementation 'androidx.recyclerview:recyclerview:1.0.+'
DataBindingPagerAdapter is a PagerAdapter
implementation instantiating its items as a
ViewDataBinding
. The configuration of the binding happens within the provided
DataBindingPagerAdapter.Binder
instances.
implementation 'androidx.viewpager:viewpager:1.0.+'
implementation 'com.google.android.material:material:1.0.+'
The adapter
subpackage contains several binding adapters and methods for the Android Data Binding
library. The usage of each is declared by {view-type}:{attribute-name}([=]{value-type})
where
=
indicates two-way binding.
TabLayout:viewPager(ViewPager)
ViewPager:currentItem(=int)
Add JitPack to your repositories and Binding Supplies to your dependencies
dependencies {
implementation "com.github.v2rc.supplies:binding:$suppliesVersion"
}
Copyright (C) 2016-2017 volders GmbH with <3 in Berlin
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.