With SDK examples, i wanted to start with something small and simple. Unfortunately they are not grouped or ordered in particular way, so i decided to go by source size. I started with “SimpleTextScreen”, which is indeed simple to understand. But experimenting with roTextScreen component i noticed some inconsistencies and here is list of my observations:
-
Bug: if SetText() supplied text is not long enough to be scrollable (i.e. bigger than the text box), pressing down button does not bring down to the buttons area and there is no way to select one of the buttons. This is a real issue when text is dynamically supplied and we don’t know in advance how long it is (and yet want to be sure user is not stuck)
-
Buglet: Text box does not get shown at all if there are 9+ buttons. I don’t think that should be the case ever, since the name of the component is roTextScreen, presumably the text box is the lead singer.
-
Buglet: Using addButton() after the screen has been show()n, adds the new button on top of the 1st button. The new button text shows on top of 1st button text and the text box shrinks, so it is trying to do something.
-
Annoyance: Text box shrinks 3x faster than the list of buttons grows up, leaving bigger and bigger gap as the number of buttons increases - this leading to the gap being 1/4 of the screen with 8 buttons, while text box shows only two lines at a time, like so:
[upload|7DhrJ87npKkkYEFDYkjd3g==]
