i have app include textview , i wonder if i can show the text with double color ,
for changing the color of the text easy to achieve by the following code :
android:textColor="#B22222"
but what i need to achieve is :
text with two different color
or
text with color filled inside other color
as exampled image below :
so i can apply that to the whole text or part of it inside the textview .
I searced the net for any example but i cant find one ,
any advice will be appreciated , thanks
UPDATE:
Iused shadow in text XML , it gave aclose shape of what im looking for , but not exact double color as previous image ,
my shadow code :
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hi"
android:textStyle="bold"
android:textSize="150dp"
android:typeface="sans"
android:textColor="#0000ff"
android:shadowColor="#B22222"
android:shadowRadius="2.0"
android:shadowDy="10.0"
android:shadowDx="10.0" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hi"
android:textStyle="bold"
android:textSize="150dp"
android:typeface="sans"
android:textColor="#0000ff"
android:shadowColor="#B22222"
android:shadowRadius="25.0" />
output result as below image :
Any idea to get same shape of text in first image , thanks