2

Is there a way to outline android's TextView text?

The Student
  • 27,520
  • 68
  • 161
  • 264
  • possible duplicate of [Android textview outline text](http://stackoverflow.com/questions/3182393/android-textview-outline-text) – Nouman Hanif Aug 11 '15 at 15:09

2 Answers2

17

So, little late, but MagicTextView will do text outlines, amongst other things.

enter image description here

<com.qwerjk.better_text.MagicTextView
    xmlns:qwerjk="http://schemas.android.com/apk/res/com.qwerjk.better_text"
    android:textSize="78dp"
    android:textColor="#ff333333"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    qwerjk:strokeColor="#FFff0000"
    qwerjk:strokeJoinStyle="miter"
    qwerjk:strokeWidth="5"
    android:text="Magic" />

Note: I made this, and am posting more for the sake of future travelers than the OP. It's borderline spam, but being on-topic, perhaps acceptable?

ABentSpoon
  • 5,007
  • 1
  • 26
  • 23
1

It appears there is no easy way according to this: Android textview outline text

Community
  • 1
  • 1
gregm
  • 12,019
  • 7
  • 56
  • 78
  • The stroke [in the other referenced](http://stackoverflow.com/questions/1723846/how-do-you-draw-text-with-a-border-on-a-mapview-in-android) in the answer looks simple enough to me, thanks! – The Student Jul 27 '10 at 15:26