类似QQ一样贴边会自动隐藏 public class FormAutoDock { public static void SideHideOrShow(Form DockableForm, ref int DockFormHeight, Timer _dockTimer) { if (DockableForm.WindowState != FormWindowState.Minimized) { _dockTimer.Interval = 1500; if (Cursor.Position.X
效果图
代码
/**
* 根据手指拖动的当前位置,自动贴边的View
*/
public class DragView extends ImageView implements View.OnTouchListener{
private int screenWidth;
private int screenHeight;
private Context mContext;
private int lastX, lastY;
private int left ,top;
pr