packages/inputmethods/PinyinIME
Revisión | 6c55502c7e45dfeac8ca9f4f8e060aaa115335d4 (tree) |
---|---|
Tiempo | 2010-07-06 18:13:45 |
Autor | Kelly_Zhou <Kelly2.Blue@gmai...> |
Commiter | Chih-Wei Huang |
Fix the feature of switching the candidate pages
@@ -30,6 +30,7 @@ import android.graphics.Paint.FontMetricsInt; | ||
30 | 30 | import android.graphics.drawable.Drawable; |
31 | 31 | import android.os.Handler; |
32 | 32 | import android.util.AttributeSet; |
33 | +import android.util.Log; | |
33 | 34 | import android.view.GestureDetector; |
34 | 35 | import android.view.MotionEvent; |
35 | 36 | import android.view.View; |
@@ -264,6 +265,9 @@ public class CandidateView extends View { | ||
264 | 265 | widthMeasureSpec), getDefaultSize(getSuggestedMinimumHeight(), |
265 | 266 | heightMeasureSpec)); |
266 | 267 | |
268 | + Log.v("CandidateView", "mMeasuredWidth: " + mMeasuredWidth + " mMeasuredHeight:" | |
269 | + + mMeasuredHeight + " mOldWidth:" + mOldWidth + " mOldHeight:" + mOldHeight); | |
270 | + mOldHeight = mMeasuredHeight; | |
267 | 271 | if (mOldWidth != mMeasuredWidth || mOldHeight != mMeasuredHeight) { |
268 | 272 | onSizeChanged(); |
269 | 273 | } |