diff options
author | Owen Lin <owenlin@google.com> | 2010-03-03 21:12:40 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2010-03-07 14:30:49 +0800 |
commit | 281be5337852cb4b5d24e0a0440c426cb96bbebd (patch) | |
tree | b4218ea13055f7e9302e432554baf1e12695cef1 /src/com/android/camera/Menu3DTest.java | |
parent | be69d39c4ab8fa93a52ed13a72ba2ad582adf583 (diff) | |
download | LegacyCamera-281be5337852cb4b5d24e0a0440c426cb96bbebd.zip LegacyCamera-281be5337852cb4b5d24e0a0440c426cb96bbebd.tar.gz LegacyCamera-281be5337852cb4b5d24e0a0440c426cb96bbebd.tar.bz2 |
Add pixel density concept to the code. So, it draw about the same size on
mdpi and hdpi devices.
Update the UI assets for mdpi
Fix a issue that GLSurfaceView didn't call onPause and onResume in Camera.
Refactor. Improve the drawing and animation.
Also fix the RawTexture unsupported operation bugs and the NullPointerException
in GLRootView.
Change-Id: I7aeadcad72d64a665828a6bb4f0f73e685fde632
Diffstat (limited to 'src/com/android/camera/Menu3DTest.java')
-rw-r--r-- | src/com/android/camera/Menu3DTest.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/camera/Menu3DTest.java b/src/com/android/camera/Menu3DTest.java index 5e599ad..c0adc6a 100644 --- a/src/com/android/camera/Menu3DTest.java +++ b/src/com/android/camera/Menu3DTest.java @@ -3,6 +3,7 @@ package com.android.camera; import android.app.Activity; import android.os.Bundle; import android.view.OrientationEventListener; +import android.widget.FrameLayout; import com.android.camera.ui.GLRootView; import com.android.camera.ui.HeadUpDisplay; @@ -21,7 +22,7 @@ public class Menu3DTest extends Activity { // set background as 18% gray :D mRootView.setBackgroundColor(0xffb7b7b7); - final HeadUpDisplay hud = new HeadUpDisplay(); + final HeadUpDisplay hud = new HeadUpDisplay(this); mRootView.setContentPane(hud); PreferenceInflater inflater = new PreferenceInflater(this); @@ -68,4 +69,11 @@ public class Menu3DTest extends Activity { mRootView.onPause(); mOrientationListener.disable(); } + + @Override + protected void onDestroy() { + mRootView = null; + setContentView(new FrameLayout(this)); + super.onDestroy(); + } } |