zeros + degree symbol

This commit is contained in:
serso 2011-10-23 14:23:18 +04:00
parent 18b6ccff54
commit 57984f9f51
3 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/plusButton"
calc:directionTextScale="0.5"
calc:textUp="°"
a:text="+"
style="?digitButtonStyle"
a:onClick="digitButtonClickHandler"/>

View File

@ -10,8 +10,7 @@
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/zeroDigitButton" a:text="0"
calc:textUp="."
calc:textDown=","
calc:textDown="000"
calc:directionTextScale="0.5"
style="?digitButtonStyle"
a:onClick="digitButtonClickHandler"/>

View File

@ -116,13 +116,13 @@ public class DirectionDragButton extends DragButton {
textDownPosition = getTextPosition(upDownTextPaint, basePaint, textDown, getText(), -1, getWidth(), getHeight(), getDirectionTextScale());
}
if (textDownPosition != null && textUpPosition != null) {
/*if (textDownPosition != null && textUpPosition != null) {
if (textDownPosition.getX() > textUpPosition.getX()) {
textDownPosition.setX(textUpPosition.getX());
} else {
textUpPosition.setX(textDownPosition.getX());
}
}
}*/
}