packages/inputmethods/PinyinIME
修訂 | 69715bd60f789bf53d92dc34b8bc0a1538b08696 (tree) |
---|---|
時間 | 2010-04-18 01:39:27 |
作者 | Kelly_Zhou <Kelly2.Blue@gmai...> |
Commiter | Chih-Wei Huang |
Enable 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 | } |