Added new draggable icons

This commit is contained in:
Ziver Koc 2014-08-19 18:20:34 +02:00
parent 9b407d2c94
commit 784a9bf777
8 changed files with 129 additions and 4 deletions

125
app/draggable.svg Normal file
View file

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="36"
height="36"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="draggable.svg">
<defs
id="defs4">
<linearGradient
inkscape:collect="always"
id="linearGradient3776"
osb:paint="gradient">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop3778" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop3780" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="18.511375"
inkscape:cx="14.512235"
inkscape:cy="17.490231"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1359"
inkscape:window-height="938"
inkscape:window-x="2577"
inkscape:window-y="362"
inkscape:window-maximized="0" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1016.3622)">
<path
sodipodi:type="arc"
style="fill:#000000;fill-opacity:0.47058824;stroke:none"
id="path2988"
sodipodi:cx="6.8606467"
sodipodi:cy="7.6930799"
sodipodi:rx="2.4849586"
sodipodi:ry="2.4849586"
d="m 9.3456054,7.6930799 a 2.4849586,2.4849586 0 1 1 -4.9699173,0 2.4849586,2.4849586 0 1 1 4.9699173,0 z"
transform="translate(-0.61017966,1014.0258)" />
<path
sodipodi:type="arc"
style="fill:#000000;fill-opacity:0.47058824;stroke:none"
id="path2988-6"
sodipodi:cx="6.8606467"
sodipodi:cy="7.6930799"
sodipodi:rx="2.4849586"
sodipodi:ry="2.4849586"
d="m 9.3456054,7.6930799 a 2.4849586,2.4849586 0 1 1 -4.9699173,0 2.4849586,2.4849586 0 1 1 4.9699173,0 z"
transform="translate(-0.61017925,1022.6691)" />
<rect
style="fill:#000000;fill-opacity:0.47058824;stroke:none"
id="rect2990-8"
width="19.717607"
height="5.1860008"
x="12.516884"
y="1027.7692"
ry="1.5125835" />
<path
sodipodi:type="arc"
style="fill:#000000;fill-opacity:0.47058824;stroke:none"
id="path2988-8"
sodipodi:cx="6.8606467"
sodipodi:cy="7.6930799"
sodipodi:rx="2.4849586"
sodipodi:ry="2.4849586"
d="m 9.3456054,7.6930799 a 2.4849586,2.4849586 0 1 1 -4.9699173,0 2.4849586,2.4849586 0 1 1 4.9699173,0 z"
transform="translate(-0.61017909,1031.3125)" />
<rect
style="fill:#000000;fill-opacity:0.47058824;stroke:none"
id="rect2990-8-7"
width="19.717607"
height="5.1860008"
x="12.516884"
y="1019.1259"
ry="1.5125835" />
<rect
style="fill:#000000;fill-opacity:0.47058824;stroke:none"
id="rect2990-8-71"
width="19.717607"
height="5.1860008"
x="12.516884"
y="1036.4126"
ry="1.5125835" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

@ -267,7 +267,7 @@ public class DynamicListView extends ListView {
int deltaY = mLastEventY - mDownY;
if (mMode == TouchMode.UNKNOWN) {
if (Math.abs(deltaX) > 70 || Math.abs(deltaY) > 50) {
if (Math.abs(deltaX) > 100 || Math.abs(deltaY) > 50) {
if (Math.abs(deltaX) >= Math.abs(deltaY))
mMode = TouchMode.REMOVE;
if (Math.abs(deltaX) < Math.abs(deltaY) && mDownX < SWAP_OFFSET)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B

After

Width:  |  Height:  |  Size: 715 B

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -7,6 +7,6 @@
android:showAsAction="withText|ifRoom" />
<item android:id="@+id/action_clear"
android:title="@string/action_clear"
android:showAsAction="withText|ifRoom" />
android:showAsAction="never" />
</menu>

View file

@ -5,12 +5,12 @@
<item android:id="@+id/action_execute"
android:title="@string/action_run"
android:showAsAction="withText|ifRoom" />
<item android:id="@+id/action_mark"
android:title="@string/action_mark"
android:orderInCategory="0"
android:showAsAction="never"
android:showAsAction="withText|ifRoom"
android:enabled="false" />
<item android:id="@+id/action_reset"
android:title="@string/action_reset"
android:orderInCategory="50"