Added new draggable icons
This commit is contained in:
parent
9b407d2c94
commit
784a9bf777
8 changed files with 129 additions and 4 deletions
|
|
@ -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 |
BIN
app/src/main/res/drawable-mdpi/draggable.png
Normal file
BIN
app/src/main/res/drawable-mdpi/draggable.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 569 B |
BIN
app/src/main/res/drawable-xhdpi/draggable.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/draggable.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 933 B |
BIN
app/src/main/res/drawable-xxhdpi/draggable.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/draggable.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue