FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Android Data Binding issue with Android Annotations · Issue #2239 · androidannotations/androidannotations · GitHub

This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Android Data Binding issue with Android Annotations #2239

Description

Hi,
An activity is annotated with @DataBound.
I create my view model in at the end of @injected and start my network call, which changes the value of LiveData in doOnSubsribe and onSuccess/onError

I set this ViewModel as the data in Binding. in initGUI with binding.setViewModel(model)

Expected.
The view should observer the live data when I declare such in xml. for instance:
bind:visibility="@{viewModel.isLoading}

Observed behaviors:
The live data changes correctly, the setValue method is called, but view does not react on those changes.

AndroidAnnotations version: 4.6

Android compile SDK version: 28

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL