diff options
author | 2010-04-14 12:01:40 -0700 | |
---|---|---|
committer | 2010-04-14 12:01:40 -0700 | |
commit | b98c17a7a9d41ce769b6867367de3eaf5cecc5db (patch) | |
tree | 2024452513e4caed0e4e0c3281e5be7125070ee0 /java/src | |
parent | 97f4b4ad340497f0fe59aa3ef4bb5d323f1c67e1 (diff) | |
parent | f9d0f3a81ad4220672f90a8799a79e63e53c46d3 (diff) | |
download | latinime-b98c17a7a9d41ce769b6867367de3eaf5cecc5db.tar.gz latinime-b98c17a7a9d41ce769b6867367de3eaf5cecc5db.tar.xz latinime-b98c17a7a9d41ce769b6867367de3eaf5cecc5db.zip |
am f9d0f3a8: Fix for: For Voice IME busy circle displayed below waveform
Merge commit 'f9d0f3a81ad4220672f90a8799a79e63e53c46d3' into froyo-plus-aosp
* commit 'f9d0f3a81ad4220672f90a8799a79e63e53c46d3':
Fix for: For Voice IME busy circle displayed below waveform
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/voice/RecognitionView.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/voice/RecognitionView.java b/java/src/com/android/inputmethod/voice/RecognitionView.java index 1e99c3cf7..7cec0b04a 100644 --- a/java/src/com/android/inputmethod/voice/RecognitionView.java +++ b/java/src/com/android/inputmethod/voice/RecognitionView.java @@ -274,12 +274,11 @@ public class RecognitionView { final int count = (endIndex - startIndex) / numSamplePerWave; final float deltaX = 1.0f * w / count; - int yMax = h / 2 - 10; + int yMax = h / 2 - 8; Path path = new Path(); c.translate(0, yMax); float x = 0; path.moveTo(x, 0); - yMax -= 10; for (int i = 0; i < count; i++) { final int avabs = getAverageAbs(waveBuffer, startIndex, i , numSamplePerWave); int sign = ( (i & 01) == 0) ? -1 : 1; @@ -297,8 +296,8 @@ public class RecognitionView { mImage.setImageBitmap(b); mImage.setVisibility(View.VISIBLE); MarginLayoutParams mProgressParams = (MarginLayoutParams)mProgress.getLayoutParams(); - mProgressParams.topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, - -h / 2 - 18, mContext.getResources().getDisplayMetrics()); + mProgressParams.topMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX, + -h , mContext.getResources().getDisplayMetrics()); // Tweak the padding manually to fill out the whole view horizontally. // TODO: Do this in the xml layout instead. |