Now i need to make a list of contacts and i want to make it editable from the listview itself. The problem is that the values which i put in the list items are not reflecting in the bindables... Is there any way to make it? Thanks in advance.
On Sat, Aug 11, 2012 at 4:41 AM, Thiago Lacerda <thiago...@gmail.com> wrote:
> Hi Andy,
> Now i need to make a list of contacts and i want to make it editable from
> the listview itself.
> The problem is that the values which i put in the list items are not
> reflecting in the bindables...
> Is there any way to make it?
> Thanks in advance.
Excuse about the delay in the response.
Here is the case:
I have an object that represents a person with an array of contacts:
public class BindablePerson extends Bindable<Person> {
public final StringObservable name = new StringObservable();
public final StringObservable socialSecurityNumber = new
StringObservable();
public final StringObservable mainActivity = new StringObservable();
public final StringObservable experience = new StringObservable();
public final ArrayListObservable<BindableContactInformation> contacts =
new
ArrayListObservable<BindableContactInformation>(BindableContactInformation. class);
}
public class BindableContactInformation extends
Bindable<ContactInformation> {
public final StringObservable description = new StringObservable();
public final StringObservable remarks = new StringObservable();
public final Observable<BindablePerson> person = new
Observable<BindablePerson>(BindablePerson.class);
public BindableContactInformation(BindablePerson person) {
this.person.set(person);
}
public class PersonEditViewModel extends BaseViewModel {
public final BindablePerson person;
public final Command addContact = new Command() {
@Override
public void Invoke(View view, Object... args) {
BindableContactInformation contact = new BindableContactInformation(person);
person.contacts.add(contact);
}
};
.
.
.
}
The problem is that when i make editions in a contact, the description and
remarks fields informed in contact row will not binds the alterations to
the correspondent item in contacts array of person, its fields remain as
null.
I hope I have been more clear now.
Thanks in advance.
> On Sat, Aug 11, 2012 at 4:41 AM, Thiago Lacerda <thiago...@gmail.com>wrote:
>> Hi Andy,
>> Now i need to make a list of contacts and i want to make it editable from
>> the listview itself.
>> The problem is that the values which i put in the list items are not
>> reflecting in the bindables...
>> Is there any way to make it?
>> Thanks in advance.
> Excuse about the delay in the response.
> Here is the case:
> I have an object that represents a person with an array of contacts:
> public class BindablePerson extends Bindable<Person> {
> public final StringObservable name = new StringObservable();
> public final StringObservable socialSecurityNumber = new
> StringObservable();
> public final StringObservable mainActivity = new StringObservable();
> public final StringObservable experience = new StringObservable();
> public final ArrayListObservable<BindableContactInformation> contacts
> = new
> ArrayListObservable<BindableContactInformation>(BindableContactInformation. class);
> }
> public class BindableContactInformation extends
> Bindable<ContactInformation> {
> public final StringObservable description = new StringObservable();
> public final StringObservable remarks = new StringObservable();
> public final Observable<BindablePerson> person = new
> Observable<BindablePerson>(BindablePerson.class);
> public BindableContactInformation(BindablePerson person) {
> this.person.set(person);
> }
> public class PersonEditViewModel extends BaseViewModel {
> public final BindablePerson person;
> public final Command addContact = new Command() {
> @Override
> public void Invoke(View view, Object... args) {
> BindableContactInformation contact = new
> BindableContactInformation(person);
> person.contacts.add(contact);
> }
> };
> .
> .
> .
> }
> The problem is that when i make editions in a contact, the description and
> remarks fields informed in contact row will not binds the alterations to
> the correspondent item in contacts array of person, its fields remain as
> null.
> I hope I have been more clear now.
> Thanks in advance.
>>> list items are not reflecting in the bindables
>> Can you elaborate more and/or show your vms?
>> On Sat, Aug 11, 2012 at 4:41 AM, Thiago Lacerda <thiago...@gmail.com>wrote:
>>> Hi Andy,
>>> Now i need to make a list of contacts and i want to make it editable
>>> from the listview itself.
>>> The problem is that the values which i put in the list items are not
>>> reflecting in the bindables...
>>> Is there any way to make it?
>>> Thanks in advance.
Log cat tells nothing about it.
When i change the values in contact information fields, the view load the
values, but when i modify the view, the fields in the list item remains the
same...
In debug i can see the observables being notified, but the item instance in
list is not modified in any moment.
I'm a little bit lost, because as you said, the markup and code seems to be
valid...
> I think you better check the log cat output, it seems perfectly valid to
> me and it should be working..
> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira <
> thiago...@gmail.com> wrote:
>> Hi Andy,
>> Excuse about the delay in the response.
>> Here is the case:
>> I have an object that represents a person with an array of contacts:
>> public class BindablePerson extends Bindable<Person> {
>> public final StringObservable name = new StringObservable();
>> public final StringObservable socialSecurityNumber = new
>> StringObservable();
>> public final StringObservable mainActivity = new StringObservable();
>> public final StringObservable experience = new StringObservable();
>> public final ArrayListObservable<BindableContactInformation> contacts
>> = new
>> ArrayListObservable<BindableContactInformation>(BindableContactInformation. class);
>> }
>> public class BindableContactInformation extends
>> Bindable<ContactInformation> {
>> public final StringObservable description = new StringObservable();
>> public final StringObservable remarks = new StringObservable();
>> public final Observable<BindablePerson> person = new
>> Observable<BindablePerson>(BindablePerson.class);
>> public BindableContactInformation(BindablePerson person) {
>> this.person.set(person);
>> }
>> }
>> Then i created a listview with person contacts:
>> public class PersonEditViewModel extends BaseViewModel {
>> public final BindablePerson person;
>> public final Command addContact = new Command() {
>> @Override
>> public void Invoke(View view, Object... args) {
>> BindableContactInformation contact = new
>> BindableContactInformation(person);
>> person.contacts.add(contact);
>> }
>> };
>> .
>> .
>> .
>> }
>> The problem is that when i make editions in a contact, the description
>> and remarks fields informed in contact row will not binds the alterations
>> to the correspondent item in contacts array of person, its fields remain as
>> null.
>> I hope I have been more clear now.
>> Thanks in advance.
>>>> list items are not reflecting in the bindables
>>> Can you elaborate more and/or show your vms?
>>> On Sat, Aug 11, 2012 at 4:41 AM, Thiago Lacerda <thiago...@gmail.com>wrote:
>>>> Hi Andy,
>>>> Now i need to make a list of contacts and i want to make it editable
>>>> from the listview itself.
>>>> The problem is that the values which i put in the list items are not
>>>> reflecting in the bindables...
>>>> Is there any way to make it?
>>>> Thanks in advance.
Now i have sure that the set method of the Observable is never called when
changing the list item in view, i thinking about the observables not are
being registered to be notified when item list is added...
What you think?
> Log cat tells nothing about it.
> When i change the values in contact information fields, the view load the
> values, but when i modify the view, the fields in the list item remains the
> same...
> In debug i can see the observables being notified, but the item instance
> in list is not modified in any moment.
> I'm a little bit lost, because as you said, the markup and code seems to
> be valid...
>> I think you better check the log cat output, it seems perfectly valid to
>> me and it should be working..
>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira <
>> thiago...@gmail.com> wrote:
>>> Hi Andy,
>>> Excuse about the delay in the response.
>>> Here is the case:
>>> I have an object that represents a person with an array of contacts:
>>> public class BindablePerson extends Bindable<Person> {
>>> public final StringObservable name = new StringObservable();
>>> public final StringObservable socialSecurityNumber = new
>>> StringObservable();
>>> public final StringObservable mainActivity = new StringObservable();
>>> public final StringObservable experience = new StringObservable();
>>> public final ArrayListObservable<BindableContactInformation>
>>> contacts = new
>>> ArrayListObservable<BindableContactInformation>(BindableContactInformation. class);
>>> }
>>> public class BindableContactInformation extends
>>> Bindable<ContactInformation> {
>>> public final StringObservable description = new StringObservable();
>>> public final StringObservable remarks = new StringObservable();
>>> public final Observable<BindablePerson> person = new
>>> Observable<BindablePerson>(BindablePerson.class);
>>> public BindableContactInformation(BindablePerson person) {
>>> this.person.set(person);
>>> }
>>> }
>>> Then i created a listview with person contacts:
>>> public class PersonEditViewModel extends BaseViewModel {
>>> public final BindablePerson person;
>>> public final Command addContact = new Command() {
>>> @Override
>>> public void Invoke(View view, Object... args) {
>>> BindableContactInformation contact = new
>>> BindableContactInformation(person);
>>> person.contacts.add(contact);
>>> }
>>> };
>>> .
>>> .
>>> .
>>> }
>>> The problem is that when i make editions in a contact, the description
>>> and remarks fields informed in contact row will not binds the alterations
>>> to the correspondent item in contacts array of person, its fields remain as
>>> null.
>>> I hope I have been more clear now.
>>> Thanks in advance.
>>>>> list items are not reflecting in the bindables
>>>> Can you elaborate more and/or show your vms?
>>>> On Sat, Aug 11, 2012 at 4:41 AM, Thiago Lacerda <thiago...@gmail.com>wrote:
>>>>> Hi Andy,
>>>>> Now i need to make a list of contacts and i want to make it editable
>>>>> from the listview itself.
>>>>> The problem is that the values which i put in the list items are not
>>>>> reflecting in the bindables...
>>>>> Is there any way to make it?
>>>>> Thanks in advance.
thiago...@gmail.com> wrote:
> Now i have sure that the set method of the Observable is never called when
> changing the list item in view, i thinking about the observables not are
> being registered to be notified when item list is added...
> What you think?
>> Log cat tells nothing about it.
>> When i change the values in contact information fields, the view load the
>> values, but when i modify the view, the fields in the list item remains the
>> same...
>> In debug i can see the observables being notified, but the item instance
>> in list is not modified in any moment.
>> I'm a little bit lost, because as you said, the markup and code seems to
>> be valid...
>>> I think you better check the log cat output, it seems perfectly valid to
>>> me and it should be working..
>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira <
>>> thiago...@gmail.com> wrote:
>>>> Hi Andy,
>>>> Excuse about the delay in the response.
>>>> Here is the case:
>>>> I have an object that represents a person with an array of contacts:
>>>> public class BindablePerson extends Bindable<Person> {
>>>> public final StringObservable name = new StringObservable();
>>>> public final StringObservable socialSecurityNumber = new
>>>> StringObservable();
>>>> public final StringObservable mainActivity = new StringObservable();
>>>> public final StringObservable experience = new StringObservable();
>>>> public final ArrayListObservable<BindableContactInformation>
>>>> contacts = new
>>>> ArrayListObservable<BindableContactInformation>(BindableContactInformation. class);
>>>> }
>>>> public class BindableContactInformation extends
>>>> Bindable<ContactInformation> {
>>>> public final StringObservable description = new StringObservable();
>>>> public final StringObservable remarks = new StringObservable();
>>>> public final Observable<BindablePerson> person = new
>>>> Observable<BindablePerson>(BindablePerson.class);
>>>> public BindableContactInformation(BindablePerson person) {
>>>> this.person.set(person);
>>>> }
>>>> }
>>>> Then i created a listview with person contacts:
>>>> public class PersonEditViewModel extends BaseViewModel {
>>>> public final BindablePerson person;
>>>> public final Command addContact = new Command() {
>>>> @Override
>>>> public void Invoke(View view, Object... args) {
>>>> BindableContactInformation contact = new
>>>> BindableContactInformation(person);
>>>> person.contacts.add(contact);
>>>> }
>>>> };
>>>> .
>>>> .
>>>> .
>>>> }
>>>> The problem is that when i make editions in a contact, the description
>>>> and remarks fields informed in contact row will not binds the alterations
>>>> to the correspondent item in contacts array of person, its fields remain as
>>>> null.
>>>> I hope I have been more clear now.
>>>> Thanks in advance.
>> i thinking about the observables not are being registered
> That's what I doubt too, and if anything wrong with the markup, log cat
> should show something.
> On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
> <thiago...@gmail.com> wrote:
>> Now i have sure that the set method of the Observable is never called when
>> changing the list item in view, i thinking about the observables not are
>> being registered to be notified when item list is added...
>> What you think?
>>> Log cat tells nothing about it.
>>> When i change the values in contact information fields, the view load the
>>> values, but when i modify the view, the fields in the list item remains the
>>> same...
>>> In debug i can see the observables being notified, but the item instance
>>> in list is not modified in any moment.
>>> I'm a little bit lost, because as you said, the markup and code seems to
>>> be valid...
>>>> I think you better check the log cat output, it seems perfectly valid to
>>>> me and it should be working..
>>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira
>>>> <thiago...@gmail.com> wrote:
>>>>> Hi Andy,
>>>>> Excuse about the delay in the response.
>>>>> Here is the case:
>>>>> I have an object that represents a person with an array of contacts:
>>>>> public class BindablePerson extends Bindable<Person> {
>>>>> public final StringObservable name = new StringObservable();
>>>>> public final StringObservable socialSecurityNumber = new
>>>>> StringObservable();
>>>>> public final StringObservable mainActivity = new
>>>>> StringObservable();
>>>>> public final StringObservable experience = new StringObservable();
>>>>> public final ArrayListObservable<BindableContactInformation>
>>>>> contacts = new
>>>>> ArrayListObservable<BindableContactInformation>(BindableContactInformation. class);
>>>>> }
>>>>> public class BindableContactInformation extends
>>>>> Bindable<ContactInformation> {
>>>>> public final StringObservable description = new StringObservable();
>>>>> public final StringObservable remarks = new StringObservable();
>>>>> public final Observable<BindablePerson> person = new
>>>>> Observable<BindablePerson>(BindablePerson.class);
>>>>> public BindableContactInformation(BindablePerson person) {
>>>>> this.person.set(person);
>>>>> }
>>>>> }
>>>>> Then i created a listview with person contacts:
thiago...@gmail.com> wrote:
> The markup is ok then...
> The log cat have no error...
> Can you try to reproduce this issue? And post me the results?
> Best regards,
> Thiago Lacerda
> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
> >> i thinking about the observables not are being registered
> > That's what I doubt too, and if anything wrong with the markup, log cat
> > should show something.
> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
> > <thiago...@gmail.com> wrote:
> >> Now i have sure that the set method of the Observable is never called
> when
> >> changing the list item in view, i thinking about the observables not are
> >> being registered to be notified when item list is added...
> >> What you think?
> >>> Log cat tells nothing about it.
> >>> When i change the values in contact information fields, the view load
> the
> >>> values, but when i modify the view, the fields in the list item
> remains the
> >>> same...
> >>> In debug i can see the observables being notified, but the item
> instance
> >>> in list is not modified in any moment.
> >>> I'm a little bit lost, because as you said, the markup and code seems
> to
> >>> be valid...
> >>>> I think you better check the log cat output, it seems perfectly valid
> to
> >>>> me and it should be working..
> >>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira
> >>>> <thiago...@gmail.com> wrote:
> >>>>> Hi Andy,
> >>>>> Excuse about the delay in the response.
> >>>>> Here is the case:
> >>>>> I have an object that represents a person with an array of contacts:
> >>>>> public class BindablePerson extends Bindable<Person> {
> >>>>> public final StringObservable name = new StringObservable();
> >>>>> public final StringObservable socialSecurityNumber = new
> >>>>> StringObservable();
> >>>>> public final StringObservable mainActivity = new
> >>>>> StringObservable();
> >>>>> public final StringObservable experience = new
> StringObservable();
> >>>>> public final ArrayListObservable<BindableContactInformation>
> >>>>> contacts = new
> >>>>> public class BindableContactInformation extends
> >>>>> Bindable<ContactInformation> {
> >>>>> public final StringObservable description = new
> StringObservable();
> >>>>> public final StringObservable remarks = new StringObservable();
> >>>>> public final Observable<BindablePerson> person = new
> >>>>> Observable<BindablePerson>(BindablePerson.class);
Exactly.
Thanks in advance for your help.
I need to deliver the prototype in this friday and after all i have
tried this trouble is the one that remains yet.
> 1. have a list of stuff
> 2. have a button to add
> 3. after adding, and editing the added item, nothing is changed
> is that so?
> Andy
> On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
> <thiago...@gmail.com> wrote:
>> The markup is ok then...
>> The log cat have no error...
>> Can you try to reproduce this issue? And post me the results?
>> Best regards,
>> Thiago Lacerda
>> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
>> >> i thinking about the observables not are being registered
>> > That's what I doubt too, and if anything wrong with the markup, log cat
>> > should show something.
>> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
>> > <thiago...@gmail.com> wrote:
>> >> Now i have sure that the set method of the Observable is never called
>> >> when
>> >> changing the list item in view, i thinking about the observables not
>> >> are
>> >> being registered to be notified when item list is added...
>> >> What you think?
>> >>> Log cat tells nothing about it.
>> >>> When i change the values in contact information fields, the view load
>> >>> the
>> >>> values, but when i modify the view, the fields in the list item
>> >>> remains the
>> >>> same...
>> >>> In debug i can see the observables being notified, but the item
>> >>> instance
>> >>> in list is not modified in any moment.
>> >>> I'm a little bit lost, because as you said, the markup and code seems
>> >>> to
>> >>> be valid...
>> >>>> I think you better check the log cat output, it seems perfectly valid
>> >>>> to
>> >>>> me and it should be working..
>> >>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira
>> >>>> <thiago...@gmail.com> wrote:
>> >>>>> Hi Andy,
>> >>>>> Excuse about the delay in the response.
>> >>>>> Here is the case:
>> >>>>> I have an object that represents a person with an array of contacts:
>> >>>>> public class BindablePerson extends Bindable<Person> {
>> >>>>> public final StringObservable name = new StringObservable();
>> >>>>> public final StringObservable socialSecurityNumber = new
>> >>>>> StringObservable();
>> >>>>> public final StringObservable mainActivity = new
>> >>>>> StringObservable();
>> >>>>> public final StringObservable experience = new
>> >>>>> StringObservable();
>> >>>>> public final ArrayListObservable<BindableContactInformation>
>> >>>>> contacts = new
>> >>>>> public class BindableContactInformation extends
>> >>>>> Bindable<ContactInformation> {
>> >>>>> public final StringObservable description = new
>> >>>>> StringObservable();
>> >>>>> public final StringObservable remarks = new StringObservable();
>> >>>>> public final Observable<BindablePerson> person = new
>> >>>>> Observable<BindablePerson>(BindablePerson.class);
BTW, I suggest you replace Tab View with Bindable Layouts later on.. Tab
View is very hard to maintain and not flexible enough. also I feel that
Google will fade TabView away..
On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira <
thiago...@gmail.com> wrote:
> Exactly.
> Thanks in advance for your help.
> I need to deliver the prototype in this friday and after all i have
> tried this trouble is the one that remains yet.
> Best regards,
> Thiago Lacerda
> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> > possible.. what you are doing is:
> > 1. have a list of stuff
> > 2. have a button to add
> > 3. after adding, and editing the added item, nothing is changed
> > is that so?
> > Andy
> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
> > <thiago...@gmail.com> wrote:
> >> The markup is ok then...
> >> The log cat have no error...
> >> Can you try to reproduce this issue? And post me the results?
> >> Best regards,
> >> Thiago Lacerda
> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
> >> >> i thinking about the observables not are being registered
> >> > That's what I doubt too, and if anything wrong with the markup, log
> cat
> >> > should show something.
> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
> >> > <thiago...@gmail.com> wrote:
> >> >> Now i have sure that the set method of the Observable is never called
> >> >> when
> >> >> changing the list item in view, i thinking about the observables not
> >> >> are
> >> >> being registered to be notified when item list is added...
> >> >> What you think?
> >> >>> Log cat tells nothing about it.
> >> >>> When i change the values in contact information fields, the view
> load
> >> >>> the
> >> >>> values, but when i modify the view, the fields in the list item
> >> >>> remains the
> >> >>> same...
> >> >>> In debug i can see the observables being notified, but the item
> >> >>> instance
> >> >>> in list is not modified in any moment.
> >> >>> I'm a little bit lost, because as you said, the markup and code
> seems
> >> >>> to
> >> >>> be valid...
> >> >>> Best Regards,
> >> >>> Thiago Lacerda
> >> >>> 2012/8/14 Andy Tsui <gueei....@gmail.com>
> >> >>>> I think you better check the log cat output, it seems perfectly
> valid
> >> >>>> to
> >> >>>> me and it should be working..
> >> >>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira
> >> >>>> <thiago...@gmail.com> wrote:
> >> >>>>> Hi Andy,
> >> >>>>> Excuse about the delay in the response.
> >> >>>>> Here is the case:
> >> >>>>> I have an object that represents a person with an array of
> contacts:
> >> >>>>> public class BindablePerson extends Bindable<Person> {
> >> >>>>> public final StringObservable name = new StringObservable();
> >> >>>>> public final StringObservable socialSecurityNumber = new
> >> >>>>> StringObservable();
> >> >>>>> public final StringObservable mainActivity = new
> >> >>>>> StringObservable();
> >> >>>>> public final StringObservable experience = new
> >> >>>>> StringObservable();
> >> >>>>> public final ArrayListObservable<BindableContactInformation>
> >> >>>>> contacts = new
> >> >>>>> public class BindableContactInformation extends
> >> >>>>> Bindable<ContactInformation> {
> >> >>>>> public final StringObservable description = new
> >> >>>>> StringObservable();
> >> >>>>> public final StringObservable remarks = new
> StringObservable();
> >> >>>>> public final Observable<BindablePerson> person = new
> >> >>>>> Observable<BindablePerson>(BindablePerson.class);
Im using bindable layouts indeed.
My prototype is entirely based in New Markup Demo...
Im using bindable layouts, bindable action bar with list navigation,
metadata files, etc
As i said to you before, i think your implementation of binding
layouts is far better than the fragments one.
Congratulations for the great framework.
> BTW, I suggest you replace Tab View with Bindable Layouts later on.. Tab
> View is very hard to maintain and not flexible enough. also I feel that
> Google will fade TabView away..
> On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
> <thiago...@gmail.com> wrote:
>> Exactly.
>> Thanks in advance for your help.
>> I need to deliver the prototype in this friday and after all i have
>> tried this trouble is the one that remains yet.
>> Best regards,
>> Thiago Lacerda
>> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>> > possible.. what you are doing is:
>> > 1. have a list of stuff
>> > 2. have a button to add
>> > 3. after adding, and editing the added item, nothing is changed
>> > is that so?
>> > Andy
>> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
>> > <thiago...@gmail.com> wrote:
>> >> The markup is ok then...
>> >> The log cat have no error...
>> >> Can you try to reproduce this issue? And post me the results?
>> >> Best regards,
>> >> Thiago Lacerda
>> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
>> >> >> i thinking about the observables not are being registered
>> >> > That's what I doubt too, and if anything wrong with the markup, log
>> >> > cat
>> >> > should show something.
>> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
>> >> > <thiago...@gmail.com> wrote:
>> >> >> Now i have sure that the set method of the Observable is never
>> >> >> called
>> >> >> when
>> >> >> changing the list item in view, i thinking about the observables not
>> >> >> are
>> >> >> being registered to be notified when item list is added...
>> >> >> What you think?
>> >> >>> Log cat tells nothing about it.
>> >> >>> When i change the values in contact information fields, the view
>> >> >>> load
>> >> >>> the
>> >> >>> values, but when i modify the view, the fields in the list item
>> >> >>> remains the
>> >> >>> same...
>> >> >>> In debug i can see the observables being notified, but the item
>> >> >>> instance
>> >> >>> in list is not modified in any moment.
>> >> >>> I'm a little bit lost, because as you said, the markup and code
>> >> >>> seems
>> >> >>> to
>> >> >>> be valid...
>> >> >>> Best Regards,
>> >> >>> Thiago Lacerda
>> >> >>> 2012/8/14 Andy Tsui <gueei....@gmail.com>
>> >> >>>> I think you better check the log cat output, it seems perfectly
>> >> >>>> valid
>> >> >>>> to
>> >> >>>> me and it should be working..
>> >> >>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira
>> >> >>>> <thiago...@gmail.com> wrote:
>> >> >>>>> Hi Andy,
>> >> >>>>> Excuse about the delay in the response.
>> >> >>>>> Here is the case:
>> >> >>>>> I have an object that represents a person with an array of
>> >> >>>>> contacts:
>> >> >>>>> public class BindablePerson extends Bindable<Person> {
>> >> >>>>> public final StringObservable name = new StringObservable();
>> >> >>>>> public final StringObservable socialSecurityNumber = new
>> >> >>>>> StringObservable();
>> >> >>>>> public final StringObservable mainActivity = new
>> >> >>>>> StringObservable();
>> >> >>>>> public final StringObservable experience = new
>> >> >>>>> StringObservable();
>> >> >>>>> public final ArrayListObservable<BindableContactInformation>
>> >> >>>>> contacts = new
>> >> >>>>> public class BindableContactInformation extends
>> >> >>>>> Bindable<ContactInformation> {
>> >> >>>>> public final StringObservable description = new
>> >> >>>>> StringObservable();
>> >> >>>>> public final StringObservable remarks = new
>> >> >>>>> StringObservable();
>> >> >>>>> public final Observable<BindablePerson> person = new
>> >> >>>>> Observable<BindablePerson>(BindablePerson.class);
> Im using bindable layouts indeed.
> My prototype is entirely based in New Markup Demo...
> Im using bindable layouts, bindable action bar with list navigation,
> metadata files, etc
> As i said to you before, i think your implementation of binding
> layouts is far better than the fragments one.
> Congratulations for the great framework.
> Best regards,
> Thiago Lacerda
> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> > BTW, I suggest you replace Tab View with Bindable Layouts later on.. Tab
> > View is very hard to maintain and not flexible enough. also I feel that
> > Google will fade TabView away..
> > On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
> > <thiago...@gmail.com> wrote:
> >> Exactly.
> >> Thanks in advance for your help.
> >> I need to deliver the prototype in this friday and after all i have
> >> tried this trouble is the one that remains yet.
> >> Best regards,
> >> Thiago Lacerda
> >> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> >> > possible.. what you are doing is:
> >> > 1. have a list of stuff
> >> > 2. have a button to add
> >> > 3. after adding, and editing the added item, nothing is changed
> >> > is that so?
> >> > Andy
> >> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
> >> > <thiago...@gmail.com> wrote:
> >> >> The markup is ok then...
> >> >> The log cat have no error...
> >> >> Can you try to reproduce this issue? And post me the results?
> >> >> Best regards,
> >> >> Thiago Lacerda
> >> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
> >> >> >> i thinking about the observables not are being registered
> >> >> > That's what I doubt too, and if anything wrong with the markup, log
> >> >> > cat
> >> >> > should show something.
> >> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
> >> >> > <thiago...@gmail.com> wrote:
> >> >> >> Now i have sure that the set method of the Observable is never
> >> >> >> called
> >> >> >> when
> >> >> >> changing the list item in view, i thinking about the observables
> not
> >> >> >> are
> >> >> >> being registered to be notified when item list is added...
> >> >> >> What you think?
> >> >> >>> Log cat tells nothing about it.
> >> >> >>> When i change the values in contact information fields, the view
> >> >> >>> load
> >> >> >>> the
> >> >> >>> values, but when i modify the view, the fields in the list item
> >> >> >>> remains the
> >> >> >>> same...
> >> >> >>> In debug i can see the observables being notified, but the item
> >> >> >>> instance
> >> >> >>> in list is not modified in any moment.
> >> >> >>> I'm a little bit lost, because as you said, the markup and code
> >> >> >>> seems
> >> >> >>> to
> >> >> >>> be valid...
> >> >> >>> Best Regards,
> >> >> >>> Thiago Lacerda
> >> >> >>> 2012/8/14 Andy Tsui <gueei....@gmail.com>
> >> >> >>>> I think you better check the log cat output, it seems perfectly
> >> >> >>>> valid
> >> >> >>>> to
> >> >> >>>> me and it should be working..
> >> >> >>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira
> >> >> >>>> <thiago...@gmail.com> wrote:
> >> >> >>>>> Hi Andy,
> >> >> >>>>> Excuse about the delay in the response.
> >> >> >>>>> Here is the case:
> >> >> >>>>> I have an object that represents a person with an array of
> >> >> >>>>> contacts:
> >> >> >>>>> public class BindablePerson extends Bindable<Person> {
> >> >> >>>>> public final StringObservable name = new
> StringObservable();
> >> >> >>>>> public final StringObservable socialSecurityNumber = new
> >> >> >>>>> StringObservable();
> >> >> >>>>> public final StringObservable mainActivity = new
> >> >> >>>>> StringObservable();
> >> >> >>>>> public final StringObservable experience = new
> >> >> >>>>> StringObservable();
> >> >> >>>>> public final
> ArrayListObservable<BindableContactInformation>
> >> >> >>>>> contacts = new
> >> >> >>>>> public class BindableContactInformation extends
> >> >> >>>>> Bindable<ContactInformation> {
> >> >> >>>>> public final StringObservable description = new
> >> >> >>>>> StringObservable();
> >> >> >>>>> public final StringObservable remarks = new
> >> >> >>>>> StringObservable();
> >> >> >>>>> public final Observable<BindablePerson> person = new
> >> >> >>>>> Observable<BindablePerson>(BindablePerson.class);
> Thanks.. but I can't take all the credits, bindable layouts are suggested by
> other member :)
> On Wed, Aug 15, 2012 at 11:40 PM, Thiago Lacerda Siqueira
> <thiago...@gmail.com> wrote:
>> Hi Andy!
>> Im using bindable layouts indeed.
>> My prototype is entirely based in New Markup Demo...
>> Im using bindable layouts, bindable action bar with list navigation,
>> metadata files, etc
>> As i said to you before, i think your implementation of binding
>> layouts is far better than the fragments one.
>> Congratulations for the great framework.
>> Best regards,
>> Thiago Lacerda
>> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>> > BTW, I suggest you replace Tab View with Bindable Layouts later on.. Tab
>> > View is very hard to maintain and not flexible enough. also I feel that
>> > Google will fade TabView away..
>> > On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
>> > <thiago...@gmail.com> wrote:
>> >> Exactly.
>> >> Thanks in advance for your help.
>> >> I need to deliver the prototype in this friday and after all i have
>> >> tried this trouble is the one that remains yet.
>> >> Best regards,
>> >> Thiago Lacerda
>> >> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>> >> > possible.. what you are doing is:
>> >> > 1. have a list of stuff
>> >> > 2. have a button to add
>> >> > 3. after adding, and editing the added item, nothing is changed
>> >> > is that so?
>> >> > Andy
>> >> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
>> >> > <thiago...@gmail.com> wrote:
>> >> >> The markup is ok then...
>> >> >> The log cat have no error...
>> >> >> Can you try to reproduce this issue? And post me the results?
>> >> >> Best regards,
>> >> >> Thiago Lacerda
>> >> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
>> >> >> >> i thinking about the observables not are being registered
>> >> >> > That's what I doubt too, and if anything wrong with the markup,
>> >> >> > log
>> >> >> > cat
>> >> >> > should show something.
>> >> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
>> >> >> > <thiago...@gmail.com> wrote:
>> >> >> >> Now i have sure that the set method of the Observable is never
>> >> >> >> called
>> >> >> >> when
>> >> >> >> changing the list item in view, i thinking about the observables
>> >> >> >> not
>> >> >> >> are
>> >> >> >> being registered to be notified when item list is added...
>> >> >> >> What you think?
>> >> >> >>> Log cat tells nothing about it.
>> >> >> >>> When i change the values in contact information fields, the view
>> >> >> >>> load
>> >> >> >>> the
>> >> >> >>> values, but when i modify the view, the fields in the list item
>> >> >> >>> remains the
>> >> >> >>> same...
>> >> >> >>> In debug i can see the observables being notified, but the item
>> >> >> >>> instance
>> >> >> >>> in list is not modified in any moment.
>> >> >> >>> I'm a little bit lost, because as you said, the markup and code
>> >> >> >>> seems
>> >> >> >>> to
>> >> >> >>> be valid...
>> >> >> >>> Best Regards,
>> >> >> >>> Thiago Lacerda
>> >> >> >>> 2012/8/14 Andy Tsui <gueei....@gmail.com>
>> >> >> >>>> I think you better check the log cat output, it seems perfectly
>> >> >> >>>> valid
>> >> >> >>>> to
>> >> >> >>>> me and it should be working..
>> >> >> >>>> On Tue, Aug 14, 2012 at 10:01 PM, Thiago Lacerda Siqueira
>> >> >> >>>> <thiago...@gmail.com> wrote:
>> >> >> >>>>> Hi Andy,
>> >> >> >>>>> Excuse about the delay in the response.
>> >> >> >>>>> Here is the case:
>> >> >> >>>>> I have an object that represents a person with an array of
>> >> >> >>>>> contacts:
>> >> >> >>>>> public class BindablePerson extends Bindable<Person> {
>> >> >> >>>>> public final StringObservable name = new
>> >> >> >>>>> StringObservable();
>> >> >> >>>>> public final StringObservable socialSecurityNumber = new
>> >> >> >>>>> StringObservable();
>> >> >> >>>>> public final StringObservable mainActivity = new
>> >> >> >>>>> StringObservable();
>> >> >> >>>>> public final StringObservable experience = new
>> >> >> >>>>> StringObservable();
>> >> >> >>>>> public final
>> >> >> >>>>> ArrayListObservable<BindableContactInformation>
>> >> >> >>>>> contacts = new
>> >> >> >>>>> public class BindableContactInformation extends
>> >> >> >>>>> Bindable<ContactInformation> {
>> >> >> >>>>> public final StringObservable description = new
>> >> >> >>>>> StringObservable();
>> >> >> >>>>> public final StringObservable remarks = new
>> >> >> >>>>> StringObservable();
>> >> >> >>>>> public final Observable<BindablePerson> person = new
>> >> >> >>>>> Observable<BindablePerson>(BindablePerson.class);
> Well, that is the secret behind open projects... =]
> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>> Thanks.. but I can't take all the credits, bindable layouts are
suggested by
>> other member :)
>> On Wed, Aug 15, 2012 at 11:40 PM, Thiago Lacerda Siqueira
>> <thiago...@gmail.com> wrote:
>>> Hi Andy!
>>> Im using bindable layouts indeed.
>>> My prototype is entirely based in New Markup Demo...
>>> Im using bindable layouts, bindable action bar with list navigation,
>>> metadata files, etc
>>> As i said to you before, i think your implementation of binding
>>> layouts is far better than the fragments one.
>>> Congratulations for the great framework.
>>> Best regards,
>>> Thiago Lacerda
>>> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>>> > BTW, I suggest you replace Tab View with Bindable Layouts later on..
Tab
>>> > View is very hard to maintain and not flexible enough. also I feel
that
>>> > Google will fade TabView away..
>>> > On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
>>> > <thiago...@gmail.com> wrote:
>>> >> Exactly.
>>> >> Thanks in advance for your help.
>>> >> I need to deliver the prototype in this friday and after all i have
>>> >> tried this trouble is the one that remains yet.
>>> >> Best regards,
>>> >> Thiago Lacerda
>>> >> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>>> >> > possible.. what you are doing is:
>>> >> > 1. have a list of stuff
>>> >> > 2. have a button to add
>>> >> > 3. after adding, and editing the added item, nothing is changed
>>> >> > is that so?
>>> >> > Andy
>>> >> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
>>> >> > <thiago...@gmail.com> wrote:
>>> >> >> The markup is ok then...
>>> >> >> The log cat have no error...
>>> >> >> Can you try to reproduce this issue? And post me the results?
>>> >> >> Best regards,
>>> >> >> Thiago Lacerda
>>> >> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
>>> >> >> >> i thinking about the observables not are being registered
>>> >> >> > That's what I doubt too, and if anything wrong with the markup,
>>> >> >> > log
>>> >> >> > cat
>>> >> >> > should show something.
>>> >> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
>>> >> >> > <thiago...@gmail.com> wrote:
>>> >> >> >> Now i have sure that the set method of the Observable is never
>>> >> >> >> called
>>> >> >> >> when
>>> >> >> >> changing the list item in view, i thinking about the
observables
>>> >> >> >> not
>>> >> >> >> are
>>> >> >> >> being registered to be notified when item list is added...
>>> >> >> >> What you think?
first I have to apologize, the "BindableLayout" email is not mean for you,
I have sent to wrong person :P
Next, that's a point I also forgot, the "EditText"'s text attribute is not
a String, but a CharSequence, which if you put a String there, it will not
serve two way binding.. To make it work, simply put CharSequenceObservable
instead of StringObservable will be fine, I attached the test project I
have to you. Enjoy.
Andy
On Thu, Aug 16, 2012 at 9:13 PM, Thiago Lacerda Siqueira <
thiago...@gmail.com> wrote:
> Hi Andy!
> Some success in reproducing the error?
> Em quarta-feira, 15 de agosto de 2012, Thiago Lacerda Siqueira<
> thiago...@gmail.com> escreveu:
> > Well, that is the secret behind open projects... =]
> > 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> >> Thanks.. but I can't take all the credits, bindable layouts are
> suggested by
> >> other member :)
> >> On Wed, Aug 15, 2012 at 11:40 PM, Thiago Lacerda Siqueira
> >> <thiago...@gmail.com> wrote:
> >>> Hi Andy!
> >>> Im using bindable layouts indeed.
> >>> My prototype is entirely based in New Markup Demo...
> >>> Im using bindable layouts, bindable action bar with list navigation,
> >>> metadata files, etc
> >>> As i said to you before, i think your implementation of binding
> >>> layouts is far better than the fragments one.
> >>> Congratulations for the great framework.
> >>> Best regards,
> >>> Thiago Lacerda
> >>> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> >>> > BTW, I suggest you replace Tab View with Bindable Layouts later on..
> Tab
> >>> > View is very hard to maintain and not flexible enough. also I feel
> that
> >>> > Google will fade TabView away..
> >>> > On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
> >>> > <thiago...@gmail.com> wrote:
> >>> >> Exactly.
> >>> >> Thanks in advance for your help.
> >>> >> I need to deliver the prototype in this friday and after all i have
> >>> >> tried this trouble is the one that remains yet.
> >>> >> Best regards,
> >>> >> Thiago Lacerda
> >>> >> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> >>> >> > possible.. what you are doing is:
> >>> >> > 1. have a list of stuff
> >>> >> > 2. have a button to add
> >>> >> > 3. after adding, and editing the added item, nothing is changed
> >>> >> > is that so?
> >>> >> > Andy
> >>> >> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
> >>> >> > <thiago...@gmail.com> wrote:
> >>> >> >> The markup is ok then...
> >>> >> >> The log cat have no error...
> >>> >> >> Can you try to reproduce this issue? And post me the results?
> >>> >> >> Best regards,
> >>> >> >> Thiago Lacerda
> >>> >> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
> >>> >> >> >> i thinking about the observables not are being registered
> >>> >> >> > That's what I doubt too, and if anything wrong with the markup,
> >>> >> >> > log
> >>> >> >> > cat
> >>> >> >> > should show something.
> >>> >> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
> >>> >> >> > <thiago...@gmail.com> wrote:
> >>> >> >> >> Now i have sure that the set method of the Observable is never
> >>> >> >> >> called
> >>> >> >> >> when
> >>> >> >> >> changing the list item in view, i thinking about the
> observables
> >>> >> >> >> not
> >>> >> >> >> are
> >>> >> >> >> being registered to be notified when item list is added...
> >>> >> >> >> What you think?
You are a life saver!
The strings now are binding like a charm.
You gave me the fish now i want to know to catch it! Can you tell how
the FW does this relation between atribute type and observable is
done? In my model i have some observables of objects and in these
cases the binding is made in one way only.
Thanks a lot for your help.
> first I have to apologize, the "BindableLayout" email is not mean for you, I
> have sent to wrong person :P
> Next, that's a point I also forgot, the "EditText"'s text attribute is not a
> String, but a CharSequence, which if you put a String there, it will not
> serve two way binding.. To make it work, simply put CharSequenceObservable
> instead of StringObservable will be fine, I attached the test project I have
> to you. Enjoy.
> Andy
> On Thu, Aug 16, 2012 at 9:13 PM, Thiago Lacerda Siqueira
> <thiago...@gmail.com> wrote:
>> Hi Andy!
>> Some success in reproducing the error?
>> Em quarta-feira, 15 de agosto de 2012, Thiago Lacerda
>> Siqueira<thiago...@gmail.com> escreveu:
>> > Well, that is the secret behind open projects... =]
>> > 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>> >> Thanks.. but I can't take all the credits, bindable layouts are
>> >> suggested by
>> >> other member :)
>> >> On Wed, Aug 15, 2012 at 11:40 PM, Thiago Lacerda Siqueira
>> >> <thiago...@gmail.com> wrote:
>> >>> Hi Andy!
>> >>> Im using bindable layouts indeed.
>> >>> My prototype is entirely based in New Markup Demo...
>> >>> Im using bindable layouts, bindable action bar with list navigation,
>> >>> metadata files, etc
>> >>> As i said to you before, i think your implementation of binding
>> >>> layouts is far better than the fragments one.
>> >>> Congratulations for the great framework.
>> >>> Best regards,
>> >>> Thiago Lacerda
>> >>> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>> >>> > BTW, I suggest you replace Tab View with Bindable Layouts later on..
>> >>> > Tab
>> >>> > View is very hard to maintain and not flexible enough. also I feel
>> >>> > that
>> >>> > Google will fade TabView away..
>> >>> > On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
>> >>> > <thiago...@gmail.com> wrote:
>> >>> >> Exactly.
>> >>> >> Thanks in advance for your help.
>> >>> >> I need to deliver the prototype in this friday and after all i have
>> >>> >> tried this trouble is the one that remains yet.
>> >>> >> Best regards,
>> >>> >> Thiago Lacerda
>> >>> >> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>> >>> >> > possible.. what you are doing is:
>> >>> >> > 1. have a list of stuff
>> >>> >> > 2. have a button to add
>> >>> >> > 3. after adding, and editing the added item, nothing is changed
>> >>> >> > is that so?
>> >>> >> > Andy
>> >>> >> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
>> >>> >> > <thiago...@gmail.com> wrote:
>> >>> >> >> The markup is ok then...
>> >>> >> >> The log cat have no error...
>> >>> >> >> Can you try to reproduce this issue? And post me the results?
>> >>> >> >> Best regards,
>> >>> >> >> Thiago Lacerda
>> >>> >> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
>> >>> >> >> >> i thinking about the observables not are being registered
>> >>> >> >> > That's what I doubt too, and if anything wrong with the
>> >>> >> >> > markup,
>> >>> >> >> > log
>> >>> >> >> > cat
>> >>> >> >> > should show something.
>> >>> >> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
>> >>> >> >> > <thiago...@gmail.com> wrote:
>> >>> >> >> >> Now i have sure that the set method of the Observable is
>> >>> >> >> >> never
>> >>> >> >> >> called
>> >>> >> >> >> when
>> >>> >> >> >> changing the list item in view, i thinking about the
>> >>> >> >> >> observables
>> >>> >> >> >> not
>> >>> >> >> >> are
>> >>> >> >> >> being registered to be notified when item list is added...
>> >>> >> >> >> What you think?
Forget it! I found in calculator example the converter concepts and it
is exactly what i needed.
Once more, thanks a lot for your help and congratulations for the
great framework.
> You are a life saver!
> The strings now are binding like a charm.
> You gave me the fish now i want to know to catch it! Can you tell how
> the FW does this relation between atribute type and observable is
> done? In my model i have some observables of objects and in these
> cases the binding is made in one way only.
> Thanks a lot for your help.
> Best Regards,
> Thiago Lacerda
> 2012/8/16 Andy Tsui <gueei....@gmail.com>:
>> Hi,
>> first I have to apologize, the "BindableLayout" email is not mean for you, I
>> have sent to wrong person :P
>> Next, that's a point I also forgot, the "EditText"'s text attribute is not a
>> String, but a CharSequence, which if you put a String there, it will not
>> serve two way binding.. To make it work, simply put CharSequenceObservable
>> instead of StringObservable will be fine, I attached the test project I have
>> to you. Enjoy.
>> Andy
>> On Thu, Aug 16, 2012 at 9:13 PM, Thiago Lacerda Siqueira
>> <thiago...@gmail.com> wrote:
>>> Hi Andy!
>>> Some success in reproducing the error?
>>> Em quarta-feira, 15 de agosto de 2012, Thiago Lacerda
>>> Siqueira<thiago...@gmail.com> escreveu:
>>> > Well, that is the secret behind open projects... =]
>>> > 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>>> >> Thanks.. but I can't take all the credits, bindable layouts are
>>> >> suggested by
>>> >> other member :)
>>> >> On Wed, Aug 15, 2012 at 11:40 PM, Thiago Lacerda Siqueira
>>> >> <thiago...@gmail.com> wrote:
>>> >>> Hi Andy!
>>> >>> Im using bindable layouts indeed.
>>> >>> My prototype is entirely based in New Markup Demo...
>>> >>> Im using bindable layouts, bindable action bar with list navigation,
>>> >>> metadata files, etc
>>> >>> As i said to you before, i think your implementation of binding
>>> >>> layouts is far better than the fragments one.
>>> >>> Congratulations for the great framework.
>>> >>> Best regards,
>>> >>> Thiago Lacerda
>>> >>> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>>> >>> > BTW, I suggest you replace Tab View with Bindable Layouts later on..
>>> >>> > Tab
>>> >>> > View is very hard to maintain and not flexible enough. also I feel
>>> >>> > that
>>> >>> > Google will fade TabView away..
>>> >>> > On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
>>> >>> > <thiago...@gmail.com> wrote:
>>> >>> >> Exactly.
>>> >>> >> Thanks in advance for your help.
>>> >>> >> I need to deliver the prototype in this friday and after all i have
>>> >>> >> tried this trouble is the one that remains yet.
>>> >>> >> Best regards,
>>> >>> >> Thiago Lacerda
>>> >>> >> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
>>> >>> >> > possible.. what you are doing is:
>>> >>> >> > 1. have a list of stuff
>>> >>> >> > 2. have a button to add
>>> >>> >> > 3. after adding, and editing the added item, nothing is changed
>>> >>> >> > is that so?
>>> >>> >> > Andy
>>> >>> >> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
>>> >>> >> > <thiago...@gmail.com> wrote:
>>> >>> >> >> The markup is ok then...
>>> >>> >> >> The log cat have no error...
>>> >>> >> >> Can you try to reproduce this issue? And post me the results?
>>> >>> >> >> Best regards,
>>> >>> >> >> Thiago Lacerda
>>> >>> >> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
>>> >>> >> >> >> i thinking about the observables not are being registered
>>> >>> >> >> > That's what I doubt too, and if anything wrong with the
>>> >>> >> >> > markup,
>>> >>> >> >> > log
>>> >>> >> >> > cat
>>> >>> >> >> > should show something.
>>> >>> >> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
>>> >>> >> >> > <thiago...@gmail.com> wrote:
>>> >>> >> >> >> Now i have sure that the set method of the Observable is
>>> >>> >> >> >> never
>>> >>> >> >> >> called
>>> >>> >> >> >> when
>>> >>> >> >> >> changing the list item in view, i thinking about the
>>> >>> >> >> >> observables
>>> >>> >> >> >> not
>>> >>> >> >> >> are
>>> >>> >> >> >> being registered to be notified when item list is added...
>>> >>> >> >> >> What you think?
Basically there are 2 binding types to attributes: one-way and two-way. one
way means you can assign value to view attr but not vice versa, example to
this will be Text, you can put any Observable<Object> to it, and it will
translate to Object.toString(). In this case, of course it cannot go back.
For two-ways, both attr and observable must be exactly the same type,
reason for this is obvious.
In some cases view attributes are readonly, for example clickedItem for
ListViews, but still those I consider them to be two-way.
Yeah, converter is really powerful pattern and I personally found many
interesting situations beyond my intended design. For example, you can add
behavior to a View without subclassing it, I once made a "SeekBar" and
make it "snap" to integer values, pure accomplished by using converter.
Andy
On Fri, Aug 17, 2012 at 10:41 PM, Thiago Lacerda Siqueira <
> Forget it! I found in calculator example the converter concepts and it
> is exactly what i needed.
> Once more, thanks a lot for your help and congratulations for the
> great framework.
> Best Regards,
> Thiago Lacerda
> 2012/8/17 Thiago Lacerda Siqueira <thiago...@gmail.com>:
> > Hi Andy!
> > You are a life saver!
> > The strings now are binding like a charm.
> > You gave me the fish now i want to know to catch it! Can you tell how
> > the FW does this relation between atribute type and observable is
> > done? In my model i have some observables of objects and in these
> > cases the binding is made in one way only.
> > Thanks a lot for your help.
> > Best Regards,
> > Thiago Lacerda
> > 2012/8/16 Andy Tsui <gueei....@gmail.com>:
> >> Hi,
> >> first I have to apologize, the "BindableLayout" email is not mean for
> you, I
> >> have sent to wrong person :P
> >> Next, that's a point I also forgot, the "EditText"'s text attribute is
> not a
> >> String, but a CharSequence, which if you put a String there, it will not
> >> serve two way binding.. To make it work, simply put
> CharSequenceObservable
> >> instead of StringObservable will be fine, I attached the test project I
> have
> >> to you. Enjoy.
> >> Andy
> >> On Thu, Aug 16, 2012 at 9:13 PM, Thiago Lacerda Siqueira
> >> <thiago...@gmail.com> wrote:
> >>> Hi Andy!
> >>> Some success in reproducing the error?
> >>> Em quarta-feira, 15 de agosto de 2012, Thiago Lacerda
> >>> Siqueira<thiago...@gmail.com> escreveu:
> >>> > Well, that is the secret behind open projects... =]
> >>> > 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> >>> >> Thanks.. but I can't take all the credits, bindable layouts are
> >>> >> suggested by
> >>> >> other member :)
> >>> >> On Wed, Aug 15, 2012 at 11:40 PM, Thiago Lacerda Siqueira
> >>> >> <thiago...@gmail.com> wrote:
> >>> >>> Hi Andy!
> >>> >>> Im using bindable layouts indeed.
> >>> >>> My prototype is entirely based in New Markup Demo...
> >>> >>> Im using bindable layouts, bindable action bar with list
> navigation,
> >>> >>> metadata files, etc
> >>> >>> As i said to you before, i think your implementation of binding
> >>> >>> layouts is far better than the fragments one.
> >>> >>> Congratulations for the great framework.
> >>> >>> Best regards,
> >>> >>> Thiago Lacerda
> >>> >>> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> >>> >>> > BTW, I suggest you replace Tab View with Bindable Layouts later
> on..
> >>> >>> > Tab
> >>> >>> > View is very hard to maintain and not flexible enough. also I
> feel
> >>> >>> > that
> >>> >>> > Google will fade TabView away..
> >>> >>> > On Wed, Aug 15, 2012 at 8:44 PM, Thiago Lacerda Siqueira
> >>> >>> > <thiago...@gmail.com> wrote:
> >>> >>> >> Exactly.
> >>> >>> >> Thanks in advance for your help.
> >>> >>> >> I need to deliver the prototype in this friday and after all i
> have
> >>> >>> >> tried this trouble is the one that remains yet.
> >>> >>> >> Best regards,
> >>> >>> >> Thiago Lacerda
> >>> >>> >> 2012/8/15 Andy Tsui <gueei....@gmail.com>:
> >>> >>> >> > possible.. what you are doing is:
> >>> >>> >> > 1. have a list of stuff
> >>> >>> >> > 2. have a button to add
> >>> >>> >> > 3. after adding, and editing the added item, nothing is
> changed
> >>> >>> >> > is that so?
> >>> >>> >> > Andy
> >>> >>> >> > On Wed, Aug 15, 2012 at 11:25 AM, Thiago Lacerda Siqueira
> >>> >>> >> > <thiago...@gmail.com> wrote:
> >>> >>> >> >> The markup is ok then...
> >>> >>> >> >> The log cat have no error...
> >>> >>> >> >> Can you try to reproduce this issue? And post me the results?
> >>> >>> >> >> Best regards,
> >>> >>> >> >> Thiago Lacerda
> >>> >>> >> >> 2012/8/14 Andy Tsui <gueei....@gmail.com>:
> >>> >>> >> >> >> i thinking about the observables not are being registered
> >>> >>> >> >> > That's what I doubt too, and if anything wrong with the
> >>> >>> >> >> > markup,
> >>> >>> >> >> > log
> >>> >>> >> >> > cat
> >>> >>> >> >> > should show something.
> >>> >>> >> >> > On Wed, Aug 15, 2012 at 4:06 AM, Thiago Lacerda Siqueira
> >>> >>> >> >> > <thiago...@gmail.com> wrote:
> >>> >>> >> >> >> Now i have sure that the set method of the Observable is
> >>> >>> >> >> >> never
> >>> >>> >> >> >> called
> >>> >>> >> >> >> when
> >>> >>> >> >> >> changing the list item in view, i thinking about the
> >>> >>> >> >> >> observables
> >>> >>> >> >> >> not
> >>> >>> >> >> >> are
> >>> >>> >> >> >> being registered to be notified when item list is added...
> >>> >>> >> >> >> What you think?