diff options
author | Owen Lin <owenlin@google.com> | 2010-04-30 15:40:44 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2010-09-23 15:41:42 +0800 |
commit | 599e592e6ad7d470e090bad784a88d833a9c9a2f (patch) | |
tree | ff1b536ad602359d4d3d3bccfd32e35fb558eb2a /src/com/android/camera/ui/GLRootView.java | |
parent | 88965e34642044c9da9e7e686323994fdc0c2c1b (diff) | |
download | LegacyCamera-599e592e6ad7d470e090bad784a88d833a9c9a2f.zip LegacyCamera-599e592e6ad7d470e090bad784a88d833a9c9a2f.tar.gz LegacyCamera-599e592e6ad7d470e090bad784a88d833a9c9a2f.tar.bz2 |
Improve the scroll bar in GLList.
Change-Id: I0d633fb7db7ea83445bf51b62f90dc5217eae746
Diffstat (limited to 'src/com/android/camera/ui/GLRootView.java')
-rw-r--r-- | src/com/android/camera/ui/GLRootView.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/GLRootView.java b/src/com/android/camera/ui/GLRootView.java index e7ac5e3..bdb0a8e 100644 --- a/src/com/android/camera/ui/GLRootView.java +++ b/src/com/android/camera/ui/GLRootView.java @@ -30,6 +30,7 @@ import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; import android.view.MotionEvent; +import android.view.View; import android.view.animation.Animation; import android.view.animation.Transformation; @@ -37,7 +38,6 @@ import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.ArrayList; import java.util.Stack; - import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import javax.microedition.khronos.opengles.GL11; @@ -728,4 +728,12 @@ public class GLRootView extends GLSurfaceView texture.setTextureSize(newWidth, newHeight); } + @Override + protected void onVisibilityChanged(View changedView, int v) { + super.onVisibilityChanged(changedView, v); + if (mContentView != null) { + mContentView.onVisibilityChanged( + v == View.VISIBLE ? GLView.VISIBLE : GLView.INVISIBLE); + } + } } |