Browse files

lower hint height

  • Loading branch information...
1 parent 39fc321 commit da0ec6167a38426545fbaf7b444c6fc7d113b33c @Xlythe committed Feb 3, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/com/android2/calculator3/view/ColorButton.java
View
8 src/com/android2/calculator3/view/ColorButton.java
@@ -123,21 +123,21 @@ else if(isPressed()) {
drawMagicFlame(0, canvas);
}
- CharSequence text = getText();
- canvas.drawText(text, 0, text.length(), mTextX, mTextY, getPaint());
-
CharSequence hint = getHint();
if(hint != null) {
String[] exponents = hint.toString().split(Pattern.quote("^"));
int offsetX = LogicalDensity.convertDpToPixel(10, getContext());
- int offsetY = LogicalDensity.convertDpToPixel(22, getContext());
+ int offsetY = LogicalDensity.convertDpToPixel(20, getContext());
for(String str : exponents) {
canvas.drawText(str, 0, str.length(), mTextX + offsetX, mTextY - offsetY, mHintPaint);
mHintPaint.getTextBounds(str, 0, str.length(), bounds);
offsetY += LogicalDensity.convertDpToPixel(6, getContext());
offsetX += bounds.width();
}
}
+
+ CharSequence text = getText();
+ canvas.drawText(text, 0, text.length(), mTextX, mTextY, getPaint());
}
public void animateClickFeedback() {

0 comments on commit da0ec61

Please sign in to comment.