Giter Site home page Giter Site logo

jenly1314 / mvvmframe Goto Github PK

View Code? Open in Web Editor NEW
343.0 12.0 54.0 49.26 MB

🏰 MVVMFrame for Android 是一个基于Google官方推出的JetPack构建的快速开发框架。从此构建一个MVVM模式的项目变得快捷简单。

License: MIT License

Java 7.14% Kotlin 92.86%
mvvm mvvm-architecture architecture-components lifecycle livedata viewmodel room room-database databinding android-architecture-components

mvvmframe's Issues

请教下repository该如何被注入到应用里

我在看demo中都弱化了repository这一层,那如果我想要在viewmodel中使用repository的话(继承自DataRepository),请问该如何在dagger中正确的注入该repository呢?

折叠屏,或者旋转会导致model为空

class GroupChatViewModel @Inject constructor(application: Application, model: GroupChatModel?) :
MessageViewModel(application, model) {

model对象事空的,只需要屏幕旋转就会空,首次,只要不旋转,对象就没问题

关于demo的看法

建议是demo单独搞个项目,最好不要弄在一起, 我们下载源码,发现总是构建失败,嗯 和谷歌的AAC一样, 结果可能就是放弃使用```你的框架, @jenly1314

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.