I figured it out.
Since I’m using setText
to TextViews in my onCreate
, calling .scrollTo
won’t work.
So now I’m using the following:
sView.post(new Runnable() {
@Override
public void run() {
sView.scrollTo(sViewX, sViewY);
}
});
More Related Contents:
- Defining custom attrs
- Filter LogCat to get only the messages from My Application in Android?
- Android heap size on different phones/devices and OS versions
- How to layout text to flow around an image
- Nested Recycler view height doesn’t wrap its content
- Developing for Android in Eclipse: R.java not regenerating
- What is Jetifier?
- How to use AsyncTask to show a ProgressDialog while doing background work in Android? [duplicate]
- How to force Share Intent to open a specific app?
- onTaskRemoved() not getting called in HUAWEI and XIAOMI devices
- Android : Static Fields and Memory Leaks
- Implementing Text Watcher for EditText
- How to select multiple images from gallery in android?
- Error: Configuration with name ‘default’ not found in Android Studio
- How to use dimens.xml in Android?
- Android SpannableString set background behind part of text
- Android – onBackPressed() not working
- Filter output in logcat by tagname
- How to use EditText onTextChanged event when I press the number?
- How can I change the background of Android alert dialogs?
- Android: RecyclerView content messed up after scrolling [closed]
- How do I fire an event when click occurs outside a dialog
- shouldOverrideUrlLoading in WebView for Android not running
- How to add page title and icon in android FragmentPagerAdapter
- Cardview shadow not appearing in lollipop devices?
- Android SIP stack – what to use? [closed]
- Dialing a phone call on click of textview in android
- Using custom simpleCursorAdapter
- setStreamMute never unmutes
- Android-Video View in Fullscreen