OSDN Git Service

Enable the feature of switching the candidate pages eclair-x86
authorKelly_Zhou <Kelly2.Blue@gmail.com>
Fri, 30 Oct 2009 07:45:34 +0000 (15:45 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 17 Apr 2010 16:39:27 +0000 (00:39 +0800)
src/com/android/inputmethod/pinyin/CandidateView.java

index 8dc1bf1..96aab90 100644 (file)
@@ -30,6 +30,7 @@ import android.graphics.Paint.FontMetricsInt;
 import android.graphics.drawable.Drawable;
 import android.os.Handler;
 import android.util.AttributeSet;
+import android.util.Log;
 import android.view.GestureDetector;
 import android.view.MotionEvent;
 import android.view.View;
@@ -264,6 +265,9 @@ public class CandidateView extends View {
                 widthMeasureSpec), getDefaultSize(getSuggestedMinimumHeight(),
                 heightMeasureSpec));
 
+        Log.v("CandidateView", "mMeasuredWidth: " + mMeasuredWidth + "  mMeasuredHeight:"
+                + mMeasuredHeight + "  mOldWidth:" + mOldWidth + "  mOldHeight:" + mOldHeight);
+        mOldHeight = mMeasuredHeight;
         if (mOldWidth != mMeasuredWidth || mOldHeight != mMeasuredHeight) {
             onSizeChanged();
         }