- in ListViewTest I'm not able to set the ListView in a Read-Only mode
(for example I pre-select some elements by code and them i don't want
the user to modify this selection, but i could change this by code
later, for whatever reason), but only in a disabled status.

You could either call this:

listView.setSelectMode(ListView.SelectMode.NONE);

or this:

listView.setEnabled(false);

depending on your use case.

- in ListViewTest I've seen the setItemChecked method, and related
method setItemChecked .
But if i comment the setItemChecked call, i got an IllegalStateException, ok.

You need to be sure to call setCheckmarksEnabled() first.

 To select elements in this case now I have to use setSelectedIndex ,
or more the addSelectedIndex ... but aren't all these methods doing
the same thing: selecting elements in the list ?
 Maybe could be simpler to have only one method to select elements,
depending what to do on the SelectMode and Checked flag ?

Selected state and checked state are maintained independently. It is possible for an item to be checked and not selected, and vice versa.

- in TextInputValidatorTest, as in the first note here I've seen it's
not possible to put a Text Input in Read-Only mode ... and maybe all
other Pivot elements, right ?

You can disable any component via the setEnabled() method.

- in TextInputValidatorTest, in the textinputFloatRange I've seen that
giving inputs in the current Locale all works good, but I haven't find
a way to change the Locale, or to set a different format to validators
... how can i do this ?

Noel may be able to comment on this one.


Reply via email to