view not updating

10 views
Skip to first unread message

Johnny TwoShoes

unread,
Jan 8, 2016, 3:03:00 PM1/8/16
to RoboBinding
Hi,

I've misunderstood Robobinding, I was expecting the following to work but it doesn't
I have a collection of object A.
Object A has several fields, which I display over several fragments.
I have two buttons, left, right, that traveres the collection, but, the fragments, displaying the fields don't get updated?

public void leftButton(){
index--;
objectA = objectAs.get(index);
}

all the fragments display fields, eg:
public String getName(){return "Name: "+ objectA.getName();}

Logs show that the collection is being traversed, but the displays aren't being updated.

Help please!?!?!?!?

kind regards

Johnny TwoShoes

unread,
Jan 8, 2016, 8:21:41 PM1/8/16
to RoboBinding
ok, I realised I had to put @DependsOnStateOf("objectA") on each of the getters for each field.

regards
Reply all
Reply to author
Forward
0 new messages