-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requestLayout() "improperly called" on Lollipop #93
Comments
I am getting the same issue. Was it solved somehow? |
No, i'm afraid i never received any response! I attempted to fork it and fix it myself but ran out of time simply trying to diagnose the issue... |
facing same issue on MotoG 2 Lolipop working fine with 4.4.4 Kitkat (Moto E) |
Although it didn't work for me. This is a custom list view I am using, though. |
Hi, Error an the scroll view in in one endless loop until I press the back button. Any idea to get a work around ? Regards |
Hi, protected void onFocusChanged( boolean gainFocus, int direction, Rect previouslyFocusedRect) around line 3544 Old Code :: if ( closetChildIndex >= 0 ) {
setSelectionFromLeft( closetChildIndex + mFirstPosition, closestChildLeft );
}
else {
if ( LOG_ENABLED ) {
Log.d( LOG_TAG, "requestLayout : onFocusChanged " );
}
requestLayout();
} New Code :: if ( gainFocus && previouslyFocusedRect != null ) {
if ( LOG_ENABLED ) {
Log.d( LOG_TAG, "requestLayout : onFocusChanged " );
}
requestLayout();
}
else {
if ( LOG_ENABLED ) {
Log.d( LOG_TAG, "SKIP : requestLayout : onFocusChanged " );
}
} This break the repeating loop "08-24 14:26:32.466: W/View(4327): requestLayout() improperly called by ". Regards |
hao quest? |
You should wrap the calling to if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
if (!isInLayout()) {
requestLayout();
}
} |
My code is completely unrelated to this project, but @rockerhieu solution still worked for me. Thanks. |
When I enable TextView marquee, I met the same issue, and rockerhieu's code solved my issue. |
Hello, I have no problems with this library on a Samsung Galaxy Note 3 or Sony Xperia Z (KitKat), or Galaxy Nexus (JellyBean), but whenever i run it on a Nexus 5 with Lollipop, the scrolling does not function and i get the following repeating continuously for as long as the activity is open.
I am using the HListView as a header on a ListView. Note, i have found that if i scroll the list down a bit and come back, it seems to fix itself - no more errors and the scrolling works as expected, which is the only thing that keeps this from being a showstopper.
Any idea what could be causing this error?
The text was updated successfully, but these errors were encountered: