01-27-2013 06:10 PM
Hi all,
I just created simple app with ListDialog - code is taken from docs (https://developer.blackberry.com/air/documentation
package
{
import flash.display.Sprite;
import flash.events.MouseEvent;
import qnx.fuse.ui.buttons.LabelButton;
import qnx.fuse.ui.dialog.ListDialog;
import flash.events.TimerEvent;
import flash.utils.Timer;
[SWF(height="1280", width="768", backgroundColor="#0D1722", frameRate="30")]
public class TestApp extends Sprite
{
private var myList:ListDialog;
public function TestApp()
{
var categoryBtn:LabelButton = new LabelButton();
categoryBtn.label = "Category";
categoryBtn.addEventListener(MouseEvent.CLICK, onCategoryBtnClick);
addChild(categoryBtn);
}
private function onCategoryBtnClick(event:MouseEvent):void
{
myList = new ListDialog();
myList.title = "Something...";
myList.addButton("OK");
myList.addButton("Cancel");
myList.items = ['Milkshake', 'Cola', 'Lemonade', 'Water', 'Root Beer', 'Orange Juice', 'Apple Juice', 'Milkshake', 'Cola', 'Lemonade', 'Water', 'Root Beer', 'Orange Juice', 'Apple Juice', 'Milkshake', 'Cola', 'Lemonade', 'Water', 'Root Beer', 'Orange Juice', 'Apple Juice'];
myList.show();
}
}
}
But in simulator or on device it's not possible to scroll this list.. it just bounce...
Anyone met this problem?
Solved! Go to Solution.
01-27-2013 07:32 PM
01-31-2013 05:41 PM
funny.... I found a solution by myself.
I created class CustomListDialog with only one line in constructor:
public function CustomListDialog()
{
_list.rowHeight = 190;
} if rowHeight is lower than 190, scrolling on list doesn't work. 190 and higher everything is fine ![]()
02-01-2013 08:45 AM
02-01-2013 08:51 AM