abc
abc

Reputation: 67

How to set shadow border of textview

I want to apply shadow border only UI of the textview at bottom not for text only.
Is it possible? please suggest me.

Upvotes: 2

Views: 1386

Answers (1)

OBX
OBX

Reputation: 6114

Try:

t.setShadowLayer(1, 0, 0, Color.BLACK);

Or perhaps this in your layout XML:

`<TextView
   android:layout_width="fill_parent" 
   android:shadowRadius="2"  
   android:shadowColor="#0000ff"
   android:shadowDx="2"
   android:shadowDy="4" 
   android:id="@+id/EditText01" 
   android:layout_height="wrap_content" />`

Upvotes: 3

Related Questions