Coder Social home page Coder Social logo

shouheng88 / arch-android Goto Github PK

View Code? Open in Web Editor NEW
220.0 4.0 36.0 2.38 MB

Type based Jetpack MVVM library.

License: Apache License 2.0

Java 19.47% Kotlin 80.53%
jetpack jetpack-android databinding databinding-android mvvm-architecture mvvm-android mvvm livedata-android-vmlib viewmodel livedata

arch-android's Issues

建议增加androidX支持

建议增加androidX支持
目前新建项目使用的都是androidX
默认生成的viewbinding是androidX包下的
与vmlib定义的类型不匹配

调整方法顺序

类 BasePreferenceFragment 的方法

 protected abstract fun doCreateView(savedInstanceState: Bundle?)

 @XmlRes protected abstract fun getPreferencesResId(): Int

的顺序,

原因:覆写的时候顺序和声明顺序一致

TODOs

  • preference 的 f 方法加一层缓存:不做,考虑 preference 被移除等情况,容易出现问题

Components Development Guidelines

  • Should we share resources in a common module?

No! This might lead to too much conflicts when corporation.

  • 组件化协作开发方式,开闭源码

一个小建议

库写的很棒
提一个小建议:
这么大一版方法的重载,看的好累。。
完全可以移出
setFailed(HomeBean::class.java, code = errorCode, message = errorMsg)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.