changes: themes support, scale for direction text

This commit is contained in:
serso
2011-10-15 22:11:59 +04:00
parent da87a9a98e
commit 58fff502cf
22 changed files with 117 additions and 39 deletions

View File

@@ -11,5 +11,5 @@
a:id="@+id/clearButton"
a:text="@string/c_clear"
a:textStyle="bold"
style="@style/control_image_button_style"
style="?controlImageButtonStyle"
a:onClick="clearButtonClickHandler"/>

View File

@@ -10,5 +10,5 @@
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/pasteButton"
a:drawableTop="@drawable/copy"
style="@style/control_image_button_style"
style="?controlImageButtonStyle"
a:onClick="copyButtonClickHandler"/>

View File

@@ -10,5 +10,5 @@
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/pasteButton"
a:drawableTop="@drawable/heart"
style="@style/control_image_button_style"
style="?controlImageButtonStyle"
a:onClick="donateButtonClickHandler"/>

View File

@@ -11,5 +11,5 @@
a:text="="
a:layout_width="match_parent"
a:layout_height="match_parent"
style="@style/control_button_style"
style="?controlButtonStyle"
a:onClick="numericButtonClickHandler"/>

View File

@@ -10,5 +10,5 @@
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/eraseButton"
a:drawableTop="@drawable/sym_keyboard_delete"
style="@style/control_image_button_style"
style="?controlImageButtonStyle"
a:onClick="eraseButtonClickHandler"/>

View File

@@ -11,7 +11,7 @@
a:text="@string/c_history_button"
calc:textUp="@string/c_undo"
calc:textDown="@string/c_redo"
style="@style/control_button_style"
style="?controlButtonStyle"
a:textSize="18dp"
a:textStyle="bold"
a:onClick="historyButtonClickHandler"/>

View File

@@ -9,7 +9,8 @@
<org.solovyev.android.view.widgets.DirectionDragButton xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/leftButton"
calc:textUp=""
a:text=""
style="@style/control_button_style"
calc:textUp="◀◀"
a:text=""
calc:directionTextScale="0.5"
style="?controlButtonStyle"
a:onClick="moveLeftButtonClickHandler"/>

View File

@@ -10,5 +10,5 @@
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/pasteButton"
a:drawableTop="@drawable/paste"
style="@style/control_image_button_style"
style="?controlImageButtonStyle"
a:onClick="pasteButtonClickHandler"/>

View File

@@ -9,7 +9,8 @@
<org.solovyev.android.view.widgets.DirectionDragButton xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:calc="http://schemas.android.com/apk/res/org.solovyev.android.calculator"
a:id="@+id/rightButton"
calc:textUp=""
a:text=""
style="@style/control_button_style"
calc:textUp="▶▶"
a:text=""
calc:directionTextScale="0.5"
style="?controlButtonStyle"
a:onClick="moveRightButtonClickHandler"/>

View File

@@ -11,4 +11,4 @@
a:text="π,…"
a:textStyle="italic"
a:onClick="varsButtonClickHandler"
style="@style/control_button_style"/>
style="?controlButtonStyle"/>