It's because they are not part of the Android SDK.
Here is the source code for mScrollX
:
/**
* The offset, in pixels, by which the content of this view is scrolled
* horizontally.
* {@hide}
*/
@ViewDebug.ExportedProperty(category = "scrolling")
protected int mScrollX;
You will notice the @hide
annotation. That means this is not part of the Android SDK. The part of the build process that creates the Android SDK will not include this data member in the stub edition of android.view.View
that is in the android.jar
file that you are compiling against.
The @hide
annotation is used for things that for internal purposes needed to be public or protected but are not considered something SDK developers should be using.
Please find other solutions for whatever problem you are experiencing.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…