¡@

Home 

2014/10/16 ¤W¤È 08:19:44

android Programming Glossary: mscrolly

Android: how to check if a View inside of ScrollView is visible?

http://stackoverflow.com/questions/4628800/android-how-to-check-if-a-view-inside-of-scrollview-is-visible

explicitly. Code from View#getDrawingRect public void getDrawingRect Rect outRect outRect.left mScrollX outRect.top mScrollY outRect.right mScrollX mRight mLeft outRect.bottom mScrollY mBottom mTop Code from View#getHitRect public void getHitRect.. Rect outRect outRect.left mScrollX outRect.top mScrollY outRect.right mScrollX mRight mLeft outRect.bottom mScrollY mBottom mTop Code from View#getHitRect public void getHitRect Rect outRect outRect.set mLeft mTop mRight mBottom share..

Protected fields not visible to subclasses

http://stackoverflow.com/questions/4916215/protected-fields-not-visible-to-subclasses

subclasses I'm writing a custom view that directly extends android.view.View . If I try to access fields mScrollX or mScrollY I see an error that the field cannot be resolved or is not a field. The source code for android.view.View has mScrollX mScrollY.. I see an error that the field cannot be resolved or is not a field. The source code for android.view.View has mScrollX mScrollY and similar variables declared protected . How is it that my direct subclass cannot access protected fields of its parent..

Maintain WebView content scroll position on orientation change

http://stackoverflow.com/questions/6855715/maintain-webview-content-scroll-position-on-orientation-change

state. The following is then added to onPageFinished public void onPageFinished final WebView view final String url if mScrollY 0 final StringBuilder sb new StringBuilder javascript window.scrollTo 0 sb.append mScrollY sb.append window.devicePixelRatio.. view final String url if mScrollY 0 final StringBuilder sb new StringBuilder javascript window.scrollTo 0 sb.append mScrollY sb.append window.devicePixelRatio view.loadUrl sb.toString super.onPageFinished view url You do get the slight flicker..