Giter Site home page Giter Site logo

mvvm-sample-app's Introduction

MVVM Sample App

The main purpose of this app is to show MVVM sample implementation using the new Google Architectural components LiveData and ViewModel.

mvvm-sample-app's People

Contributors

hazems avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mvvm-sample-app's Issues

Data don't refresh automatically

I try to run app and i try to add "Star" to project in github, but data in app not automatically updated.
How to make this code can update data automatically?

if anyone wants to refresh the data, you can't put mutableLiveData into a method

public LiveData<List<Project>> getProjectList(String userId) {
        final MutableLiveData<List<Project>> data = new MutableLiveData<>();
      
like this, if you use the method to refresh data, you can only get a new mutableLiveData which can't be observed the change ,you should put mutableLiveData out of the method.

        //something...

        return data;
    }

Error: variable dereferenced in app/build/generated/source/apt/debug/com/example/test/mvvmsampleapp/databinding/ProjectListItemBinding.java

Hi Guys,

Actually the issue is in system generated file named

app/build/generated/source/apt/debug/com/example/test/mvvmsampleapp/databinding/ProjectListItemBinding.java

projectWatchers - The variable name is mismatched on its declaration. Refer Line:17 and Line:111

Anyway to edit this file. In android studio it says "Files under the build folder are not editable".

exception

Hello,

i have this error:

public ProjectListViewModel(@nonnull ProjectRepository projectRepository, @nonnull Application application)

in this point

@Inject
public ProjectListViewModel(@nonnull ProjectRepository projectRepository, @nonnull Application application)

java.lang.NoSuchMethodException: [class android.app.Application]

I have discover that projectRepository is null

can you suggest me something?

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.