Reimplement drag button
This commit is contained in:
@@ -8,8 +8,12 @@
|
||||
<dimen name="min_expanded_height_lock_screen">300dp</dimen>
|
||||
<dimen name="cpp_text_size">20sp</dimen>
|
||||
<dimen name="cpp_button_padding">1px</dimen>
|
||||
<dimen name="cpp_direction_text_default_padding">2dp</dimen>
|
||||
<dimen name="cpp_direction_text_min_size">9dp</dimen>
|
||||
<item name="cpp_direction_text_scale" format="float" type="dimen">0.3</item>
|
||||
<dimen name="cpp_button_corner">1dp</dimen>
|
||||
|
||||
<dimen name="cpp_keyboard_button_direction_text_padding">4dp</dimen>
|
||||
<dimen name="cpp_keyboard_button_text_size">30dp</dimen>
|
||||
<dimen name="cpp_keyboard_simple_image_button_padding">12dp</dimen>
|
||||
|
||||
|
17
app/src/main/res/values/drag_attrs.xml
Normal file
17
app/src/main/res/values/drag_attrs.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="DirectionText">
|
||||
<attr name="directionTextColor" format="color"/>
|
||||
<attr name="directionTextAlpha" format="float"/>
|
||||
<attr name="directionTextUp" format="string"/>
|
||||
<attr name="directionTextDown" format="string"/>
|
||||
<attr name="directionTextRight" format="string"/>
|
||||
<attr name="directionTextLeft" format="string"/>
|
||||
<attr name="directionTextScale" format="float"/>
|
||||
<attr name="directionTextPadding" format="dimension"/>
|
||||
<attr name="directionTextScaleUp" format="float"/>
|
||||
<attr name="directionTextScaleDown" format="float"/>
|
||||
<attr name="directionTextScaleRight" format="float"/>
|
||||
<attr name="directionTextScaleLeft" format="float"/>
|
||||
</declare-styleable>
|
||||
</resources>
|
4
app/src/main/res/values/drag_dimens.xml
Normal file
4
app/src/main/res/values/drag_dimens.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="drag_min_distance">25dp</dimen>
|
||||
</resources>
|
@@ -39,7 +39,8 @@
|
||||
<item name="android:textColor">@color/cpp_button_text</item>
|
||||
<item name="android:scaleType">centerInside</item>
|
||||
<item name="directionTextColor">@color/cpp_button_text</item>
|
||||
<item name="directionTextScale">@string/cpp_direction_text_size</item>
|
||||
<item name="directionTextScale">@dimen/cpp_direction_text_scale</item>
|
||||
<item name="directionTextPadding">@dimen/cpp_keyboard_button_direction_text_padding</item>
|
||||
</style>
|
||||
|
||||
<style name="CppText.Editor.Onscreen.Light" parent="CppText.Editor.Onscreen">
|
||||
|
@@ -5,7 +5,6 @@
|
||||
<string name="cpp_kb_operators" translatable="false">∂</string>
|
||||
<string name="cpp_kb_undo" translatable="false">↶</string>
|
||||
<string name="cpp_kb_redo" translatable="false">↷</string>
|
||||
<string name="cpp_direction_text_size" translatable="false">0.3;0.3;0.3;0.3</string>
|
||||
<string name="cpp_plot_add_function" translatable="false">+</string>
|
||||
<string name="cpp_plot_zoom_in" translatable="false">+</string>
|
||||
<string name="cpp_plot_zoom_reset" translatable="false">0</string>
|
||||
|
Reference in New Issue
Block a user