diff options
author | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-04-24 20:16:58 +0300 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2016-04-25 00:56:31 -0700 |
commit | ac7e035ab75f8ad8b74faefaa8763b4f3faca526 (patch) | |
tree | fa135c985c53c7a5af854a48dc78ac27b9a4cf27 /src/com/cyanogenmod/eleven/dragdrop | |
parent | 1b3cbd3fe25a23aa40b6f88e1e3a02b7de4d6e78 (diff) | |
download | android_packages_apps_Eleven-ac7e035ab75f8ad8b74faefaa8763b4f3faca526.tar.gz android_packages_apps_Eleven-ac7e035ab75f8ad8b74faefaa8763b4f3faca526.tar.bz2 android_packages_apps_Eleven-ac7e035ab75f8ad8b74faefaa8763b4f3faca526.zip |
Eleven: Cleanup all the whitespace
Change-Id: I82024ce0ada3220b6b87178ea36303b53445e065
Diffstat (limited to 'src/com/cyanogenmod/eleven/dragdrop')
-rw-r--r-- | src/com/cyanogenmod/eleven/dragdrop/DragSortController.java | 16 | ||||
-rw-r--r-- | src/com/cyanogenmod/eleven/dragdrop/DragSortListView.java | 48 |
2 files changed, 32 insertions, 32 deletions
diff --git a/src/com/cyanogenmod/eleven/dragdrop/DragSortController.java b/src/com/cyanogenmod/eleven/dragdrop/DragSortController.java index 6f7380f..e433ec0 100644 --- a/src/com/cyanogenmod/eleven/dragdrop/DragSortController.java +++ b/src/com/cyanogenmod/eleven/dragdrop/DragSortController.java @@ -76,7 +76,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O * Calls {@link #DragSortController(DragSortListView, int)} with a 0 drag * handle id, FLING_RIGHT_REMOVE remove mode, and ON_DOWN drag init. By * default, sorting is enabled, and removal is disabled. - * + * * @param dslv The DSLV instance */ public DragSortController(DragSortListView dslv) { @@ -85,7 +85,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O /** * By default, sorting is enabled, and removal is disabled. - * + * * @param dslv The DSLV instance * @param dragHandleId The resource id of the View that represents the drag * handle in a list item. @@ -114,7 +114,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O /** * Set how a drag is initiated. Needs to be one of {@link ON_DOWN}, * {@link ON_DRAG}, or {@link ON_LONG_PRESS}. - * + * * @param mode The drag init mode. */ public void setDragInitMode(int mode) { @@ -124,7 +124,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O /** * Enable/Disable list item sorting. Disabling is useful if only item * removal is desired. Prevents drags in the vertical direction. - * + * * @param enabled Set <code>true</code> to enable list item sorting. */ public void setSortEnabled(boolean enabled) { @@ -170,7 +170,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O /** * Set the resource id for the View that represents the drag handle in a * list item. - * + * * @param id An android resource id. */ public void setDragHandleId(int id) { @@ -181,7 +181,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O * Sets flags to restrict certain motions of the floating View based on * DragSortController settings (such as remove mode). Starts the drag on the * DragSortListView. - * + * * @param position The list item position (includes headers). * @param deltaX Touch x-coord minus left edge of floating View. * @param deltaY Touch y-coord minus top edge of floating View. @@ -286,7 +286,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O * This function simply calls {@link #dragHandleHitPosition(MotionEvent)}. * Override to change drag handle behavior; this function is called * internally when an ACTION_DOWN event is detected. - * + * * @param ev The ACTION_DOWN MotionEvent. * @return The list position to drag if a drag-init gesture is detected; * MISS if unsuccessful. @@ -299,7 +299,7 @@ public class DragSortController extends SimpleFloatViewManager implements View.O * Checks for the touch of an item's drag handle (specified by * {@link #setDragHandleId(int)}), and returns that item's position if a * drag handle touch was detected. - * + * * @param ev The ACTION_DOWN MotionEvent. * @return The list position of the item whose drag handle was touched; MISS * if unsuccessful. diff --git a/src/com/cyanogenmod/eleven/dragdrop/DragSortListView.java b/src/com/cyanogenmod/eleven/dragdrop/DragSortListView.java index 9d36af1..64a32c6 100644 --- a/src/com/cyanogenmod/eleven/dragdrop/DragSortListView.java +++ b/src/com/cyanogenmod/eleven/dragdrop/DragSortListView.java @@ -38,7 +38,7 @@ import java.io.IOException; /** * ListView subclass that mediates drag and drop resorting of items. - * + * * @author heycosmo */ public class DragSortListView extends ListView { @@ -445,7 +445,7 @@ public class DragSortListView extends ListView { /** * Set maximum drag scroll speed in positions/second. Only applies if using * default ScrollSpeedProfile. - * + * * @param max Maximum scroll speed. */ public void setMaxScrollSpeed(final float max) { @@ -466,7 +466,7 @@ public class DragSortListView extends ListView { * As opposed to {@link ListView#getAdapter()}, which returns a heavily * wrapped ListAdapter (DragSortListView wraps the input ListAdapter {\emph * and} ListView wraps the wrapped one). - * + * * @return The ListAdapter set as the argument of {@link setAdapter()} */ public ListAdapter getInputAdapter() { @@ -642,7 +642,7 @@ public class DragSortListView extends ListView { /** * Get the height of the given wrapped item and its child. - * + * * @param position Position from which item was obtained. * @param item List item (usually obtained from * {@link ListView#getChildAt()}). @@ -667,7 +667,7 @@ public class DragSortListView extends ListView { * This function works for arbitrary positions (could be off-screen). If * requested position is off-screen, this function calls * <code>getView</code> to get height information. - * + * * @param position ListView position. * @param heights Object to fill with heights of item at * <code>position</code>. @@ -716,7 +716,7 @@ public class DragSortListView extends ListView { /** * Get the shuffle edge for item at position when top of item is at y-coord * top - * + * * @param position * @param top * @param height Height of item at position. If -1, this function calculates @@ -957,7 +957,7 @@ public class DragSortListView extends ListView { /** * Stop a drag in progress. Pass <code>true</code> if you would like to * remove the dragged item from the list. - * + * * @param remove Remove the dragged item from the list. Calls a registered * DropListener, if one exists. * @return True if the stop was successful. @@ -1099,7 +1099,7 @@ public class DragSortListView extends ListView { /** * Set the width of each drag scroll region by specifying a fraction of the * ListView height. - * + * * @param heightFraction Fraction of ListView height. Capped at 0.5f. */ public void setDragScrollStart(final float heightFraction) { @@ -1109,7 +1109,7 @@ public class DragSortListView extends ListView { /** * Set the width of each drag scroll region by specifying a fraction of the * ListView height. - * + * * @param upperFrac Fraction of ListView height for up-scroll bound. Capped * at 0.5f. * @param lowerFrac Fraction of ListView height for down-scroll bound. @@ -1497,10 +1497,10 @@ public class DragSortListView extends ListView { * FloatViewManager. Calls through to * {@link #startDrag(int,View,int,int,int)} after obtaining the floating * View from the FloatViewManager. - * + * * @param position Item to drag. * @param dragFlags Flags that restrict some movements of the floating View. - * For example, set <code>dragFlags |= + * For example, set <code>dragFlags |= * ~{@link #DRAG_NEG_X}</code> to allow dragging the floating View in all * directions except off the screen to the left. * @param deltaX Offset in x of the touch coordinate from the left edge of @@ -1531,11 +1531,11 @@ public class DragSortListView extends ListView { /** * Start a drag of item at <code>position</code> without using a * FloatViewManager. - * + * * @param position Item to drag. * @param floatView Floating View. * @param dragFlags Flags that restrict some movements of the floating View. - * For example, set <code>dragFlags |= + * For example, set <code>dragFlags |= * ~{@link #DRAG_NEG_X}</code> to allow dragging the floating View in all * directions except off the screen to the left. * @param deltaX Offset in x of the touch coordinate from the left edge of @@ -1706,7 +1706,7 @@ public class DragSortListView extends ListView { * {@link ViewGroup.LayoutParams} on this View; otherwise it will set * some for you (with a width of FILL_PARENT and a height of * WRAP_CONTENT). - * + * * @param position Position of item to drag (NOTE: <code>position</code> * excludes header Views; thus, if you want to call * {@link ListView#getChildAt(int)}, you will need to add @@ -1720,7 +1720,7 @@ public class DragSortListView extends ListView { * can be changed here. Also, the upcoming location of the float View * can be altered by setting <code>location.x</code> and * <code>location.y</code>. - * + * * @param floatView The floating View. * @param location The location (top-left; relative to DSLV top-left) at * which the float View would like to appear, given the @@ -1734,7 +1734,7 @@ public class DragSortListView extends ListView { * Called when the float View is dropped; lets you perform any necessary * cleanup. The internal DSLV floating View reference is set to null * immediately after this is called. - * + * * @param floatView The floating View passed to * {@link #onCreateFloatView(int)}. */ @@ -1754,7 +1754,7 @@ public class DragSortListView extends ListView { * ListView. If enabled, items are draggable, where the drag init mode * determines how items are lifted (see {@link setDragInitMode(int)}). If * disabled, items cannot be dragged. - * + * * @param enabled Set <code>true</code> to enable list item dragging */ public void setDragEnabled(final boolean enabled) { @@ -1770,7 +1770,7 @@ public class DragSortListView extends ListView { * for you; doesn't make sense to. Make sure * {@link BaseAdapter#notifyDataSetChanged()} or something like it is called * in your implementation. - * + * * @param l */ public void setDropListener(final DropListener l) { @@ -1783,7 +1783,7 @@ public class DragSortListView extends ListView { * item removal occurs, DragSortListView relies on a redraw of all the items * to recover invisible views and such. Strictly speaking, if you remove * something, your dataset has changed... - * + * * @param l */ public void setRemoveListener(final RemoveListener l) { @@ -1801,7 +1801,7 @@ public class DragSortListView extends ListView { * Your implementation of this has to reorder your ListAdapter! Make sure to * call {@link BaseAdapter#notifyDataSetChanged()} or something like it in * your implementation. - * + * * @author heycosmo */ public interface DropListener { @@ -1811,7 +1811,7 @@ public class DragSortListView extends ListView { /** * Make sure to call {@link BaseAdapter#notifyDataSetChanged()} or something * like it in your implementation. - * + * * @author heycosmo */ public interface RemoveListener { @@ -1831,7 +1831,7 @@ public class DragSortListView extends ListView { * Completely custom scroll speed profile. Default increases linearly with * position and is constant in time. Create your own by implementing * {@link DragSortListView.DragScrollProfile}. - * + * * @param ssp */ public void setDragScrollProfile(final DragScrollProfile ssp) { @@ -1845,14 +1845,14 @@ public class DragSortListView extends ListView { * and time. Use * {@link DragSortListView#setDragScrollProfile(DragScrollProfile)} to set * custom profile. - * + * * @author heycosmo */ public interface DragScrollProfile { /** * Return a scroll speed in pixels/millisecond. Always return a positive * number. - * + * * @param w Normalized position in scroll region (i.e. w \in [0,1]). * Small w typically means slow scrolling. * @param t Time (in milliseconds) since start of scroll (handy if you |