summaryrefslogtreecommitdiffstats
path: root/tests/HwAccelerationTest/src/com/android/test/hwui/TextFadeActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/HwAccelerationTest/src/com/android/test/hwui/TextFadeActivity.java')
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/TextFadeActivity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/TextFadeActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/TextFadeActivity.java
index c8bbc7d..d307ef8 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/TextFadeActivity.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/TextFadeActivity.java
@@ -21,7 +21,9 @@ import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Bundle;
+import android.text.TextUtils;
import android.view.View;
+import android.widget.TextView;
@SuppressWarnings({"UnusedDeclaration"})
public class TextFadeActivity extends Activity {
@@ -30,5 +32,8 @@ public class TextFadeActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.text_fade);
+
+ findViewById(R.id.contact_tile_name).setHorizontalFadingEdgeEnabled(true);
+ ((TextView) findViewById(R.id.contact_tile_name)).setEllipsize(TextUtils.TruncateAt.MARQUEE);
}
}