Android Tab layout: Wrap tab indicator width with respect to tab title
<p>Is there any way to wrap tab indicator width with respect to tab title ? </p>

<p><a href="https://i.stack.imgur.com/SB26j.png" rel="noreferrer"><img src="https://i.stack.imgur.com/SB26j.png" alt="Current"></a></p>

<p><a href="https://i.stack.imgur.com/zA9d2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zA9d2.png" alt="Required"></a></p>