Style fixing

This commit is contained in:
serso
2016-03-13 23:45:54 +01:00
parent 4434973733
commit 1dcd43258c
32 changed files with 221 additions and 181 deletions

View File

@@ -29,5 +29,6 @@
a:id="@id/cpp_button_6"
style="?attr/cpp_button_style_digit"
a:text="6"
c:directionTextUp="√"
c:directionTextLeft="F"
tools:ignore="HardcodedText" />

View File

@@ -29,7 +29,5 @@
a:id="@id/cpp_button_9"
style="?attr/cpp_button_style_digit"
a:text="9"
c:directionTextDown="e"
c:directionTextLeft="0x:"
c:directionTextUp="π"
tools:ignore="HardcodedText" />

View File

@@ -22,9 +22,12 @@
~ Site: http://se.solovyev.org
-->
<Button
<org.solovyev.android.views.dragbutton.DirectionDragButton
a:id="@id/cpp_button_clear"
style="?attr/cpp_button_style_control_image"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:a="http://schemas.android.com/apk/res/android"
a:background="@color/grey_850"
a:text="@string/c_clear"
app:directionTextUp="MC"
a:textStyle="bold"/>

View File

@@ -29,6 +29,4 @@
a:id="@id/cpp_button_division"
style="?attr/cpp_button_style_operation"
a:text="/"
c:directionTextDown="√"
c:directionTextUp="%"
tools:ignore="HardcodedText" />

View File

@@ -29,8 +29,7 @@
style="?attr/cpp_button_style_control"
a:background="@drawable/button_no_bg"
a:text="="
a:textColor="?android:attr/textColorPrimary"
c:directionTextColor="?android:attr/textColorPrimary"
a:textColor="?attr/cpp_text_color"
c:directionTextDown="@string/cpp_plot_button_text"
c:directionTextUp="≡"
tools:ignore="HardcodedText" />

View File

@@ -25,5 +25,6 @@
<ImageButton
xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@id/cpp_button_erase"
a:background="@color/cpp_material_light_darker"
style="?attr/cpp_button_style_control_image"
a:src="@drawable/ic_backspace_white_48dp" />

View File

@@ -31,4 +31,5 @@
a:text="@string/cpp_kb_functions"
a:textStyle="italic"
c:directionTextUp="+ƒ"
c:directionTextDown="+π"
tools:ignore="HardcodedText" />

View File

@@ -27,5 +27,5 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
a:text="@string/cpp_kb_memory_recall"
app:directionTextDown="@string/cpp_kb_memory_minus"
app:directionTextLeft="@string/cpp_kb_memory_clear"
app:directionTextUp="@string/cpp_kb_memory_plus" />
app:directionTextUp="@string/cpp_kb_memory_plus"
a:textStyle="bold"/>

View File

@@ -28,5 +28,4 @@
a:id="@id/cpp_button_subtraction"
style="?attr/cpp_button_style_operation"
a:text=""
c:directionTextDown="@string/cpp_kb_operators"
tools:ignore="HardcodedText" />

View File

@@ -29,7 +29,4 @@
a:id="@id/cpp_button_multiplication"
style="?attr/cpp_button_style_operation"
a:text="×"
c:directionTextDown="^2"
c:directionTextLeft="Π"
c:directionTextUp="^"
tools:ignore="HardcodedText" />

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2013 serso aka se.solovyev
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Contact details
~
~ Email: se.solovyev@gmail.com
~ Site: http://se.solovyev.org
-->
<org.solovyev.android.views.dragbutton.DirectionDragButton
a:id="@id/cpp_button_percent"
style="?attr/cpp_button_style_digit"
xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
a:text="%"
app:directionTextDown="^2"
app:directionTextUp="^"
tools:ignore="HardcodedText" />

View File

@@ -30,6 +30,6 @@
style="?attr/cpp_button_style_digit"
a:text="( )"
c:directionTextDown=")"
c:directionTextLeft="(.)"
c:directionTextLeft="()"
c:directionTextUp="("
tools:ignore="HardcodedText" />

View File

@@ -30,5 +30,6 @@
style="?attr/cpp_button_style_control"
a:text="@string/cpp_kb_variables"
a:textStyle="italic"
c:directionTextUp=""
c:directionTextDown="e"
c:directionTextUp="π"
tools:ignore="HardcodedText" />

View File

@@ -27,6 +27,23 @@
a:layout_height="match_parent"
a:orientation="vertical">
<LinearLayout
a:layout_width="match_parent"
a:layout_height="0dp"
a:layout_weight="1">
<include layout="@layout/cpp_app_button_vars" />
<include layout="@layout/cpp_app_button_functions" />
<include layout="@layout/cpp_app_button_percent" />
<include layout="@layout/cpp_app_button_erase" />
<include layout="@layout/cpp_app_button_clear" />
</LinearLayout>
<LinearLayout
a:layout_width="match_parent"
a:layout_height="0dp"
@@ -38,9 +55,10 @@
<include layout="@layout/cpp_app_button_9" />
<include layout="@layout/cpp_app_button_multiplication" />
<include layout="@layout/cpp_app_button_division" />
<include layout="@layout/cpp_app_button_memory" />
<include layout="@layout/cpp_app_button_clear" />
</LinearLayout>
@@ -55,9 +73,9 @@
<include layout="@layout/cpp_app_button_6" />
<include layout="@layout/cpp_app_button_division" />
<include layout="@layout/cpp_app_button_multiplication" />
<include layout="@layout/cpp_app_button_erase" />
<include layout="@layout/cpp_app_button_copy" />
</LinearLayout>
@@ -72,23 +90,6 @@
<include layout="@layout/cpp_app_button_3" />
<include layout="@layout/cpp_app_button_plus" />
<include layout="@layout/cpp_app_button_copy" />
</LinearLayout>
<LinearLayout
a:layout_width="match_parent"
a:layout_height="0dp"
a:layout_weight="1">
<include layout="@layout/cpp_app_button_round_brackets" />
<include layout="@layout/cpp_app_button_0" />
<include layout="@layout/cpp_app_button_dot" />
<include layout="@layout/cpp_app_button_minus" />
<include layout="@layout/cpp_app_button_paste" />
@@ -101,13 +102,13 @@
a:layout_height="0dp"
a:layout_weight="1">
<include layout="@layout/cpp_app_button_left" />
<include layout="@layout/cpp_app_button_round_brackets" />
<include layout="@layout/cpp_app_button_right" />
<include layout="@layout/cpp_app_button_0" />
<include layout="@layout/cpp_app_button_vars" />
<include layout="@layout/cpp_app_button_dot" />
<include layout="@layout/cpp_app_button_functions" />
<include layout="@layout/cpp_app_button_plus" />
<include layout="@layout/cpp_app_button_history" />