Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 1 | package org.sflphone.model; |
| 2 | |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 3 | import org.sflphone.R; |
Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 4 | import org.sflphone.adapters.ContactPictureTask; |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 5 | |
| 6 | import android.content.Context; |
| 7 | import android.graphics.Bitmap; |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 8 | import android.graphics.BitmapShader; |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 9 | import android.graphics.Canvas; |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 10 | import android.graphics.Color; |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 11 | import android.graphics.Paint; |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 12 | import android.graphics.Paint.Style; |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 13 | import android.graphics.PointF; |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 14 | import android.graphics.RectF; |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 15 | import android.graphics.Shader; |
Alexandre Lision | d9c3f7f | 2013-10-30 15:20:55 -0400 | [diff] [blame] | 16 | import android.view.MotionEvent; |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 17 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 18 | public abstract class Bubble { |
alision | 806e18e | 2013-06-21 15:30:17 -0400 | [diff] [blame] | 19 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 20 | // A Bitmap object that is going to be passed to the BitmapShader |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 21 | protected Bitmap externalBMP; |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 22 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 23 | protected PointF pos = new PointF(); |
| 24 | protected RectF bounds; |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 25 | public float target_scale = 1.f; |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 26 | protected float radius; |
| 27 | protected float scale = 1.f; |
| 28 | protected float density = 1.f; |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 29 | public PointF speed = new PointF(0, 0); |
| 30 | public PointF last_speed = new PointF(); |
| 31 | public PointF attractor = null; |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 32 | ActionDrawer act; |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 33 | |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 34 | public boolean isUser; |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 35 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 36 | public boolean dragged = false; |
Alexandre Lision | 6deda41 | 2013-09-25 13:21:22 -0400 | [diff] [blame] | 37 | |
Alexandre Lision | 0edf18c | 2013-09-23 17:35:50 -0400 | [diff] [blame] | 38 | public boolean markedToDie = false; |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 39 | public long last_drag; |
| 40 | public boolean expanded; // determine if we draw the buttons around the bubble |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 41 | protected Bitmap saved_photo; |
alision | 4a0eb09 | 2013-05-07 13:52:03 -0400 | [diff] [blame] | 42 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 43 | public interface actions { |
Alexandre Lision | 5cd659e | 2013-10-29 13:18:23 -0400 | [diff] [blame] | 44 | int OUT_OF_BOUNDS = -1; |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 45 | int NOTHING = 0; |
| 46 | int HOLD = 1; |
| 47 | int RECORD = 2; |
| 48 | int HANGUP = 3; |
| 49 | int MESSAGE = 4; |
| 50 | int TRANSFER = 5; |
| 51 | int MUTE = 6; |
| 52 | } |
| 53 | |
| 54 | protected Context mContext; |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 55 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 56 | public void setAttractor(PointF attractor) { |
| 57 | this.attractor = attractor; |
| 58 | } |
Adrien Béraud | e0ef0c2 | 2013-05-18 01:56:27 +1000 | [diff] [blame] | 59 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 60 | public Bubble(Context context, CallContact contact, float x, float y, float size) { |
| 61 | mContext = context; |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 62 | pos.set(x, y); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 63 | radius = size / 2; // 10 is the white stroke |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 64 | saved_photo = getContactPhoto(context, contact, (int) size); |
| 65 | generateBitmap(); |
| 66 | attractor = new PointF(x, y); |
Alexandre Lision | d568603 | 2013-10-29 11:09:21 -0400 | [diff] [blame] | 67 | isUser = false; |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 68 | } |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 69 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 70 | protected void generateBitmap() { |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 71 | |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 72 | int w = saved_photo.getWidth(), h = saved_photo.getHeight(); |
| 73 | if (w > h) { |
| 74 | w = h; |
| 75 | } else if (h > w) { |
| 76 | h = w; |
| 77 | } |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 78 | externalBMP = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 79 | BitmapShader shader; |
| 80 | shader = new BitmapShader(saved_photo, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); |
| 81 | |
| 82 | Paint paint = new Paint(); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 83 | paint.setDither(true); |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 84 | paint.setAntiAlias(true); |
| 85 | paint.setShader(shader); |
| 86 | Canvas internalCanvas = new Canvas(externalBMP); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 87 | internalCanvas.drawCircle(w / 2, h / 2, w / 2, paint); |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 88 | |
| 89 | Paint whiteStroke = new Paint(); |
| 90 | whiteStroke.setStyle(Style.STROKE); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 91 | whiteStroke.setStrokeWidth(8); |
| 92 | if (expanded) { |
| 93 | whiteStroke.setColor(mContext.getResources().getColor(R.color.sfl_action_blue)); |
| 94 | } else { |
| 95 | whiteStroke.setColor(Color.WHITE); |
| 96 | } |
| 97 | whiteStroke.setDither(true); |
| 98 | whiteStroke.setAntiAlias(true); |
| 99 | internalCanvas.drawCircle(w / 2, h / 2, w / 2 - 4, whiteStroke); |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 100 | |
| 101 | bounds = new RectF(pos.x - getRadius(), pos.y - getRadius(), pos.x + getRadius(), pos.y + getRadius()); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 102 | |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 103 | } |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 104 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 105 | protected Bitmap getContactPhoto(Context context, CallContact contact, int size) { |
| 106 | if (contact.getPhoto_id() > 0) { |
| 107 | return ContactPictureTask.loadContactPhoto(context.getContentResolver(), contact.getId()); |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 108 | } else { |
| 109 | return ContactPictureTask.decodeSampledBitmapFromResource(context.getResources(), R.drawable.ic_contact_picture, (int) size, (int) size); |
| 110 | } |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 111 | } |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 112 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 113 | public Bitmap getBitmap() { |
| 114 | return externalBMP; |
| 115 | } |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 116 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 117 | public RectF getBounds() { |
| 118 | return bounds; |
| 119 | } |
Adrien Béraud | 3326888 | 2013-05-18 03:41:15 +1000 | [diff] [blame] | 120 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 121 | public abstract void set(float x, float y, float s); |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 122 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 123 | public float getPosX() { |
| 124 | return pos.x; |
| 125 | } |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 126 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 127 | public float getPosY() { |
| 128 | return pos.y; |
| 129 | } |
Adrien Béraud | 6bbce91 | 2013-05-24 00:48:13 +1000 | [diff] [blame] | 130 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 131 | public void setPos(float x, float y) { |
| 132 | set(x, y, scale); |
| 133 | } |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 134 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 135 | public PointF getPos() { |
| 136 | return pos; |
| 137 | } |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 138 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 139 | public float getScale() { |
| 140 | return scale; |
| 141 | } |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 142 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 143 | public void setScale(float s) { |
| 144 | set(pos.x, pos.y, s); |
| 145 | } |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 146 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 147 | public abstract int getRadius(); |
Adrien Béraud | 6bbce91 | 2013-05-24 00:48:13 +1000 | [diff] [blame] | 148 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 149 | /** |
| 150 | * Point intersection test. |
| 151 | */ |
| 152 | boolean intersects(float x, float y) { |
alision | 34673e6 | 2013-06-25 14:40:07 -0400 | [diff] [blame] | 153 | float dx = x - pos.x; |
| 154 | float dy = y - pos.y; |
alision | 50fa072 | 2013-06-25 17:29:44 -0400 | [diff] [blame] | 155 | |
Alexandre Lision | 5ed2c97 | 2013-10-11 15:36:33 -0400 | [diff] [blame] | 156 | return dx * dx + dy * dy < getRadius() * getRadius(); |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 157 | } |
Adrien Béraud | 6bbce91 | 2013-05-24 00:48:13 +1000 | [diff] [blame] | 158 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 159 | /** |
| 160 | * Other circle intersection test. |
| 161 | */ |
| 162 | boolean intersects(float x, float y, float radius) { |
| 163 | float dx = x - pos.x, dy = y - pos.y; |
| 164 | float tot_radius = getRadius() + radius; |
| 165 | return dx * dx + dy * dy < tot_radius * tot_radius; |
| 166 | } |
Adrien Béraud | 6bbce91 | 2013-05-24 00:48:13 +1000 | [diff] [blame] | 167 | |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 168 | public void setDensity(float density) { |
| 169 | this.density = density; |
| 170 | } |
Adrien Béraud | 25fc409 | 2013-05-06 15:28:39 +1000 | [diff] [blame] | 171 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 172 | public abstract void expand(int width, int height); |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 173 | |
| 174 | public void retract() { |
| 175 | expanded = false; |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 176 | generateBitmap(); |
alision | 2ec64f9 | 2013-06-17 17:28:58 -0400 | [diff] [blame] | 177 | } |
alision | df1dac9 | 2013-06-27 17:35:53 -0400 | [diff] [blame] | 178 | |
Alexandre Lision | 0edf18c | 2013-09-23 17:35:50 -0400 | [diff] [blame] | 179 | public boolean isOnBorder(float w, float h) { |
| 180 | return (bounds.left < 0 || bounds.right > w || bounds.top < 0 || bounds.bottom > h); |
| 181 | } |
| 182 | |
alision | 729b0a2 | 2013-07-02 11:57:33 -0400 | [diff] [blame] | 183 | /** |
| 184 | * Always return the normal radius of the bubble |
alision | 91d2859 | 2013-07-02 14:33:53 -0400 | [diff] [blame] | 185 | * |
alision | 729b0a2 | 2013-07-02 11:57:33 -0400 | [diff] [blame] | 186 | * @return |
| 187 | */ |
| 188 | public float getRetractedRadius() { |
| 189 | return radius; |
| 190 | } |
| 191 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 192 | public abstract boolean getHoldStatus(); |
alision | 729b0a2 | 2013-07-02 11:57:33 -0400 | [diff] [blame] | 193 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 194 | public abstract boolean getRecordStatus(); |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 195 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 196 | public abstract Bitmap getDrawerBitmap(); |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 197 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 198 | public abstract RectF getDrawerBounds(); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 199 | |
| 200 | protected abstract class ActionDrawer { |
| 201 | |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 202 | int mWidth, mHeight; |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 203 | RectF bounds; |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 204 | Bitmap img; |
Alexandre Lision | d5ee396 | 2013-11-08 15:37:28 -0500 | [diff] [blame] | 205 | Paint mLines; |
| 206 | Paint mBackgroundPaint; |
| 207 | Paint mButtonPaint; |
| 208 | Paint mSelector; |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 209 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 210 | public ActionDrawer(int w, int h) { |
| 211 | |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 212 | mWidth = w; |
| 213 | mHeight = h; |
| 214 | bounds = new RectF(0, 0, 0, 0); |
Alexandre Lision | d5ee396 | 2013-11-08 15:37:28 -0500 | [diff] [blame] | 215 | |
| 216 | mButtonPaint = new Paint(); |
| 217 | mBackgroundPaint = new Paint(); |
| 218 | mBackgroundPaint.setColor(mContext.getResources().getColor(R.color.sfl_blue_9)); |
| 219 | mLines = new Paint(); |
| 220 | mLines.setAntiAlias(true); |
| 221 | mLines.setStrokeWidth(2); |
Alexandre Lision | 5702b37 | 2013-11-26 16:19:26 -0500 | [diff] [blame] | 222 | mLines.setColor(mContext.getResources().getColor(R.color.sfl_blue_lines)); |
Alexandre Lision | d5ee396 | 2013-11-08 15:37:28 -0500 | [diff] [blame] | 223 | |
| 224 | mSelector = new Paint(); |
| 225 | mSelector.setStyle(Style.FILL); |
| 226 | mSelector.setColor(mContext.getResources().getColor(R.color.sfl_dark_blue)); |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 227 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 228 | } |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 229 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 230 | /** |
| 231 | * When the bubble is expanded we need to check on wich action button the user tap |
| 232 | * |
| 233 | * @param x |
| 234 | * @param y |
| 235 | * @return |
| 236 | */ |
| 237 | public abstract int getAction(float x, float y); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 238 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 239 | public void setBounds(float f, float y, float g, float h) { |
| 240 | bounds.set(f, y, g, h); |
| 241 | } |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 242 | |
Alexandre Lision | d9c3f7f | 2013-10-30 15:20:55 -0400 | [diff] [blame] | 243 | public abstract void generateBitmap(int action); |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 244 | |
Alexandre Lision | 5cd659e | 2013-10-29 13:18:23 -0400 | [diff] [blame] | 245 | public RectF getDrawerBounds() { |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 246 | return bounds; |
| 247 | } |
| 248 | |
| 249 | public void setBounds(RectF bounds) { |
| 250 | this.bounds = bounds; |
| 251 | } |
| 252 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 253 | public Bitmap getBitmap() { |
| 254 | return img; |
| 255 | } |
| 256 | |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 257 | public int getWidth() { |
| 258 | return mWidth; |
| 259 | } |
| 260 | |
| 261 | public int getHeight() { |
| 262 | return mHeight; |
| 263 | } |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 264 | |
| 265 | public void adjustBounds(float x, float y) { |
| 266 | |
| 267 | } |
| 268 | |
Alexandre Lision | d588bff | 2013-10-08 12:43:01 -0400 | [diff] [blame] | 269 | } |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 270 | |
| 271 | public ActionDrawer getDrawer() { |
| 272 | return act; |
| 273 | } |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 274 | |
Alexandre Lision | 40954dc | 2013-10-09 15:24:03 -0400 | [diff] [blame] | 275 | public void setDrawer(ActionDrawer a) { |
| 276 | act = a; |
| 277 | } |
| 278 | |
Alexandre Lision | 6885547 | 2013-10-10 16:20:46 -0400 | [diff] [blame] | 279 | public abstract String getName(); |
| 280 | |
| 281 | public abstract boolean callIDEquals(String call); |
| 282 | |
| 283 | public abstract String getCallID(); |
| 284 | |
| 285 | public boolean isConference() { |
| 286 | return false; |
| 287 | } |
Alexandre Lision | ee2494d | 2013-10-09 17:14:00 -0400 | [diff] [blame] | 288 | |
Alexandre Lision | d9c3f7f | 2013-10-30 15:20:55 -0400 | [diff] [blame] | 289 | public abstract boolean onDown(MotionEvent event); |
| 290 | |
alision | fe9cf71 | 2013-05-03 17:26:08 -0400 | [diff] [blame] | 291 | } |