KunMinX 专注 “业务架构”,致力消除敏捷开发过程中 “不可预期问题”。
kunminx / strict-databinding Goto Github PK
View Code? Open in Web Editor NEW善用 DataBinding 彻底解决 “View 实例的 Null 安全一致性问题”
善用 DataBinding 彻底解决 “View 实例的 Null 安全一致性问题”
KunMinX 专注 “业务架构”,致力消除敏捷开发过程中 “不可预期问题”。
您好,大佬,通过对于本库的学习,我这边实现了一个KT版本的,目前丢在gitee上,如果您这边允许的话想挂到jitpackio 上了https://gitee.com/Sun.start/TestBinding 这是项目地址,您看一下可以么
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv"
adapter="@{adapter}"
submitList="@{vm.list}"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
app:layoutManager="com.kunminx.binding_recyclerview.layout_manager.WrapContentGridLayoutManager"
app:itemCount="4"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
另外没有app下的itemCount命名空间:AAPT: error: attribute itemCount (aka aks.android.rvcs:itemCount) not found.
任何缺乏实证依据和因果逻辑的泛泛而谈,都可能对其他使用者造成困扰。
在发表个人见解前,请先确保自己认真阅读过源码。这是对自己、对作者、对其他读者最起码的尊重。
ObservableList 可以直接 使用addOnListChangedCallback 监听方法去操作列表得:增,删,改,查
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.