summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/BubbleTextView.java
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2011-12-30 14:05:22 +0000
committernebkat <nebkat@teamhacksung.org>2011-12-30 14:05:22 +0000
commit291324116b7ac4d4348643d93e432c20768125ea (patch)
tree8c2580d8f9cfce4f37adbb654997e52ec22489af /src/com/cyanogenmod/trebuchet/BubbleTextView.java
parent51480b8f3978c2c464c493ba39caec840228786c (diff)
downloadandroid_packages_apps_Trebuchet-291324116b7ac4d4348643d93e432c20768125ea.tar.gz
android_packages_apps_Trebuchet-291324116b7ac4d4348643d93e432c20768125ea.tar.bz2
android_packages_apps_Trebuchet-291324116b7ac4d4348643d93e432c20768125ea.zip
Cleanup
Change-Id: I24b6971f1ab1f26f5295d4a5647e8fb08fe558f7
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/BubbleTextView.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/BubbleTextView.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/com/cyanogenmod/trebuchet/BubbleTextView.java b/src/com/cyanogenmod/trebuchet/BubbleTextView.java
index a8a99a329..a3eb3b65b 100644
--- a/src/com/cyanogenmod/trebuchet/BubbleTextView.java
+++ b/src/com/cyanogenmod/trebuchet/BubbleTextView.java
@@ -18,33 +18,24 @@ package com.cyanogenmod.trebuchet;
import android.content.Context;
import android.content.res.Resources;
-import android.graphics.Bitmap;
-import android.graphics.Canvas;
-import android.graphics.Color;
-import android.graphics.Paint;
-import android.graphics.Rect;
-import android.graphics.Region;
+import android.graphics.*;
import android.graphics.Region.Op;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.TextView;
-import com.cyanogenmod.trebuchet.R;
-
/**
* TextView that draws a bubble behind the text. We cannot use a LineBackgroundSpan
* because we want to make the bubble taller than the text and TextView's clip is
* too aggressive.
*/
public class BubbleTextView extends TextView {
- static final float CORNER_RADIUS = 4.0f;
static final float SHADOW_LARGE_RADIUS = 4.0f;
static final float SHADOW_SMALL_RADIUS = 1.75f;
static final float SHADOW_Y_OFFSET = 2.0f;
static final int SHADOW_LARGE_COLOUR = 0xDD000000;
static final int SHADOW_SMALL_COLOUR = 0xCC000000;
- static final float PADDING_H = 8.0f;
static final float PADDING_V = 3.0f;
private Paint mPaint;