How to color specific characters in an Arabic string?
<p>In Arabic languages, specific characters are colored as a rule. How can I color those characters. 
I tried coloring it using Spannable string. But the sentence gets distorted.</p>

<p>Here is the image to show what I meant by distorted. </p>

<p><a href="https://i.stack.imgur.com/rxZ1E.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rxZ1E.jpg" alt="Distort text"></a></p>

<p>There is an app (Iquran) is available on play google which implements this functionality.</p>

<p><a href="https://i.stack.imgur.com/XeU7U.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XeU7U.jpg" alt="enter image description here"></a></p>

<p>So what's the best way to implement this functionality? </p>