I'm trying to create a native text scrolling field that work on Android. The field is created but you can't scroll it. Works fine on iOS, not in Android. Here is the code I'm using.
Code: Select all
on openCard
createNativeField
end openCard
on createNativeField
if environment() = "mobile" then
mobileControlCreate "multiline", "testField"
mobileControlSet "testField", "rect", the rect of graphic "testFieldGraphic"
mobileControlSet "testField", "text", field "sourceField"
mobileControlSet "testField", "visible", "true"
mobileControlSet "testField", "editable", "false"
mobileControlSet "testField", "dataDetectorTypes", "link"
mobileControlSet "testField", "textAlign", "center"
mobileControlSet "testField", "fontSize", "16"
mobileControlSet "testField", "autoCorrectionType", "no"
mobileControlSet "testField", "scrollingEnabled", "true"
mobileControlSet "testField", "opaque", "false"
mobileControlSet "testField", "scrollingEnabled", "true"
if the platform is "iphone" then
mobileControlSet "testField", "borderStyle", "none"
mobileControlSet "testField", "indicatorStyle", "white"
mobileControlSet "testField", "canBounce", "true"
mobileControlSet "testField", "canScrollToTop", "true"
end if
if the platform is "android" then
mobileControlSet "testField", "multiline", "true"
end if
end if
end createNativeField