Is it possible to define the initial position of a ScrollView in the xml?
I found some posts here on the stackoverflow that showed how to set the starting position of a ScrollView. Only none of them is via xml, I was wondering if that is possible.
Looking at the attributes of a ScrollView in android studio I found scrollX and scrollY, can they define the initial position of ScrollView?
And if scrollX and scrollY don't solve, is there any other attribute that can define the initial position of a ScrollView?
Answers 1
This can be done with the
android:scrollX
andandroid:scrollY
attributes which are defined in the documentation as: