All Projects → DylanCaiCoding → Viewbindingktx

DylanCaiCoding / Viewbindingktx

Licence: apache-2.0
The most comprehensive utils of ViewBinding.(最全面的 ViewBinding 工具,支持 Kotlin 和 Java 用法,支持拓展函数和基类改造,支持 BRVAH)

Programming Languages

kotlin
9241 projects

Labels

Projects that are alternatives of or similar to Viewbindingktx

ArrayInterface.jl
Designs for new Base array interface primitives, used widely through scientific machine learning (SciML) and other organizations
Stars: ✭ 111 (+12.12%)
Mutual labels:  base
algorithm-base
一位酷爱做饭的程序员,立志用动画将算法说的通俗易懂。我的面试网站 www.chengxuchu.com
Stars: ✭ 9,824 (+9823.23%)
Mutual labels:  base
Basepro
使用MVPArms框架搭建的一个基类工程,便于日常项目开发。
Stars: ✭ 41 (-58.59%)
Mutual labels:  base
GenericAdapter
⛳️ Easy to use android databinding ready recyclerview adapter
Stars: ✭ 26 (-73.74%)
Mutual labels:  base
core
Pisi-2.0 Core repository
Stars: ✭ 19 (-80.81%)
Mutual labels:  base
Protolude
A sensible starting Prelude template.
Stars: ✭ 372 (+275.76%)
Mutual labels:  base
eslint-config
🚀 Jetrockets Standarts | ESLint
Stars: ✭ 20 (-79.8%)
Mutual labels:  base
Minecraft Hack Baseclient
This is a Minecraft Base Client
Stars: ✭ 95 (-4.04%)
Mutual labels:  base
BlueSkyTv
简单的安卓TV 超纯净
Stars: ✭ 17 (-82.83%)
Mutual labels:  base
System
Development repository for the "system" Chef cookbook
Stars: ✭ 21 (-78.79%)
Mutual labels:  base
Numbase
Arbitrary number base converter.
Stars: ✭ 22 (-77.78%)
Mutual labels:  base
nodejs express template
🐼 source dummy Nodejs
Stars: ✭ 13 (-86.87%)
Mutual labels:  base
Boilerform
Boilerform is a little HTML and CSS boilerplate to take the pain away from working with forms.
Stars: ✭ 679 (+585.86%)
Mutual labels:  base
elixir-ms
an elixir microservice base/skeleton 💀
Stars: ✭ 39 (-60.61%)
Mutual labels:  base
0xc
Easy base conversion in emacs
Stars: ✭ 42 (-57.58%)
Mutual labels:  base
variantkey
Numerical Encoding for Human Genetic Variants
Stars: ✭ 32 (-67.68%)
Mutual labels:  base
Yzsbaseactivity
BaseActivity的框架,各种方便使用,欢迎star,给你惊喜
Stars: ✭ 287 (+189.9%)
Mutual labels:  base
Basetheme
Themes for base plotting system in R
Stars: ✭ 99 (+0%)
Mutual labels:  base
New Empty Python Project Base
The Perfect Python Project Template. Bored of coding anew the same thing for your new Python projects? Here is what you need. Click below on the "use this template" green button to start using it instantly. Rename the "project" folder and all references to this folder to customize your project name.
Stars: ✭ 60 (-39.39%)
Mutual labels:  base
Fsfirestore
Functional F# library to access Firestore database hosted on Google Cloud Platform (GCP) or Firebase.
Stars: ✭ 22 (-77.78%)
Mutual labels:  base

ViewBindingKTX

English | 中文

Download

ViewBinding reduces exceptions caused by id or type errors, which are recommended by both Google officials and Jake Wharton, but it can be a bit cumbersome to use, so this library can help you use ViewBinding with as little code as possible in any usage scenario.

Feature

  • Support for the usage of Kotlin and Java
  • Support for the usage of reflection and non-reflection
  • Support to modify your base class to support ViewBinding
  • Support for BaseRecyclerViewAdapterHelper
  • Support for Activity, Fragment, Dialog, Adapter
  • Support automatic release of binding class instance in Fragment
  • Support for custom combination view
  • Support for TabLayout to set custom view

Gradle

Adding dependencies and configurations:

android {
    viewBinding {
        enabled = true
    }
}

dependencies {
    // The following are optional, please add as needed
    implementation 'com.dylanc:viewbinding-ktx:1.1.0'
    implementation 'com.dylanc:viewbinding-nonreflection-ktx:1.1.0'
    implementation 'com.dylanc:viewbinding-base-ktx:1.1.0'
    implementation 'com.dylanc:viewbinding-brvah-ktx:1.1.0'
}

Wiki

Kotlin usage

Java usage

Others

Thanks

Thanks ViewBindingPropertyDelegate for providing an idea without reflection

License

Copyright (C) 2020. Dylan Cai

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].