Skip to content
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

@keehoo

Description

@keehoo

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions