07-23-2012 11:02 AM - edited 07-23-2012 11:03 AM
Further to this, using a un-editable TextArea within a ListView item affects the scrolling behaviour of the parent ListView. Touching the TextArea directly will prevent the ListView from scrolling, whereas touching any other area of the screen will cause the ListView to behave as normal.
My QML code:
TextArea {
// Multiple lines currently not implemented
id: txtTweetContent
editable: false
focusable: Focusable.None
text: "Hello, this is some text that I would be typing on twitter if I were actually using twitter. I aim for this to be 140 characters long. Stop."
preferredWidth: 608
textStyle.size: 36
leftMargin: 100
topMargin: 0
bottomMargin: 0
layoutProperties: StackLayoutProperties {
horizontalAlignment: HorizontalAlignment.Right
verticalAlignment: VerticalAlignment.Top
}
}
07-23-2012 10:36 PM
I can confirm that I'm seeing this behavior as well.
If you use a TextArea as the root of your ListItemComponent, it pretty much locks up usability of the whole ListView. If its some piece of a container, then at least you still have something you can touch-scroll from.
07-24-2012 12:22 PM
Please raise the issue in Issue Tracker: http://supportforums.blackberry.com/t5/Java-Develo
Thanks,
Alex
09-12-2012 12:50 PM
This works for me:
touchPropagationMode: TouchPropagationMode.None
You have perhaps to remove the "focusable: Focusable.None"
Happy hacking! ![]()