Extract DragButton into a separate module
This commit is contained in:
21
dragbutton/src/main/res/values/attrs.xml
Normal file
21
dragbutton/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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="directionTextPaddingUp" format="dimension"/>
|
||||
<attr name="directionTextPaddingDown" format="dimension"/>
|
||||
<attr name="directionTextPaddingRight" format="dimension"/>
|
||||
<attr name="directionTextPaddingLeft" 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>
|
5
dragbutton/src/main/res/values/colors.xml
Normal file
5
dragbutton/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="drag_text_inverse">#424242</color>
|
||||
<color name="drag_button_text">#ffffffff</color>
|
||||
</resources>
|
7
dragbutton/src/main/res/values/dimens.xml
Normal file
7
dragbutton/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="drag_min_distance">15dp</dimen>
|
||||
<dimen name="drag_direction_text_default_padding">2dp</dimen>
|
||||
<dimen name="drag_direction_text_min_size">9dp</dimen>
|
||||
<item name="drag_direction_text_scale" format="float" type="dimen">0.35</item>
|
||||
</resources>
|
Reference in New Issue
Block a user