summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-08-13 19:39:53 -0700
committerRomain Guy <romainguy@google.com>2010-08-13 19:41:14 -0700
commit1e45aae5de003657e5d18f74d34998f5de5db5b7 (patch)
tree355320038d0de8ed9b39c0cd3d3865b7fbbae1fd /tests
parent029a74a38b56b97cbfe02b3d8e23536cea71609d (diff)
downloadframeworks_base-1e45aae5de003657e5d18f74d34998f5de5db5b7.zip
frameworks_base-1e45aae5de003657e5d18f74d34998f5de5db5b7.tar.gz
frameworks_base-1e45aae5de003657e5d18f74d34998f5de5db5b7.tar.bz2
Add drop shadows.
Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
Diffstat (limited to 'tests')
-rw-r--r--tests/HwAccelerationTest/src/com/google/android/test/hwui/TextActivity.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/HwAccelerationTest/src/com/google/android/test/hwui/TextActivity.java b/tests/HwAccelerationTest/src/com/google/android/test/hwui/TextActivity.java
index 59f665c..8af1b7b 100644
--- a/tests/HwAccelerationTest/src/com/google/android/test/hwui/TextActivity.java
+++ b/tests/HwAccelerationTest/src/com/google/android/test/hwui/TextActivity.java
@@ -65,8 +65,16 @@ public class TextActivity extends Activity {
canvas.drawText("Hello OpenGL renderer!", 100, 60, mMediumPaint);
mMediumPaint.setTextAlign(Paint.Align.LEFT);
canvas.drawText("Hello OpenGL renderer!", 100, 100, mMediumPaint);
+ mMediumPaint.setShadowLayer(2.5f, 0.0f, 0.0f, 0xff000000);
+ canvas.drawText("Hello OpenGL renderer!", 100, 150, mMediumPaint);
+ mMediumPaint.clearShadowLayer();
canvas.drawText("Hello OpenGL renderer!", 100, 200, mLargePaint);
-
+
+ mLargePaint.setShadowLayer(2.5f, 3.0f, 3.0f, 0xff000000);
+ canvas.drawText("Hello OpenGL renderer!", 100, 400, mLargePaint);
+ mLargePaint.setShadowLayer(3.0f, 3.0f, 3.0f, 0xff00ff00);
+ canvas.drawText("Hello OpenGL renderer!", 100, 500, mLargePaint);
+ mLargePaint.clearShadowLayer();
canvas.drawText("Hello OpenGL renderer!", 500, 40, mStrikePaint);
mStrikePaint.setStrikeThruText(true);