Android update recyclerView items -
i have simple problem on update recyclerview items new data, i'm wondering code work fine without using data binding, in code adding new items trigger click on button clickonsendcommandtorobot method, method must add new item list , adapter can know add new data , refresh recyclerview , dont error, list size 1 public class activityregister extends baseactivities { private robotmessagesadapter adapter; private list<robotviewmodel> model; private static final string tag = "register"; @override public void oncreate(@nullable bundle savedinstancestate) { super.oncreate(savedinstancestate); binding = databindingutil.setcontentview(this, r.layout.activity_register); activityregisterpresenter presenter = new activityregisterpresenter(this); activityregisterviewmodel viewmodel = new activityregisterviewmodel(); binding.setviewmodel(viewmodel); binding.setpresenter(presenter); if (savedi...