Skip to content

Commit ad282db

Browse files
committed
Improve docs and sample a bit
1 parent e55970b commit ad282db

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ TranslationViewDragHelper.Callback mCallback = new TranslationViewDragHelper.Cal
4444
See the sample [custom view](https://github.com/Commit451/TranslationViewDragHelper/blob/master/app/src/main/java/com/commit451/betterviewdraghelper/sample/AllowsForDragFrameLayout.java) for a more complete example
4545

4646
# Basis
47-
The current version of this helper is derived from `ViewDragHelper` source from `24.0.0` of the Support Library. Due to private constructor access on ViewDragHelper, the source has to be copied out into the `TranslationViewDragHelper`. You can check the diff [here](https://www.diffchecker.com/)
47+
The current version of this helper is derived from `ViewDragHelper` source from `24.2.0` of the Support Library. Due to private constructor access on ViewDragHelper, the source has to be copied out into the `TranslationViewDragHelper`. You can check the diff [here](https://www.diffchecker.com/)
4848

4949
License
5050
--------

app/src/main/java/com/commit451/betterviewdraghelper/sample/AllowsForDragFrameLayout.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ public boolean tryCaptureView(View child, int pointerId) {
2323
return true;
2424
}
2525

26-
@Override
27-
public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {
28-
super.onViewPositionChanged(changedView, left, top, dx, dy);
29-
changedView.setX(left);
30-
changedView.setY(top);
31-
}
32-
3326
@Override
3427
public int clampViewPositionHorizontal(View child, int left, int dx) {
3528
//allow full movement along horizontal axis
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<string name="app_name">BetterViewDragHelper</string>
2+
<string name="app_name">TranslationViewDragHelper</string>
33
</resources>

0 commit comments

Comments
 (0)