android loading circle (spinner) between two activity
<p>I have a main activity that has simple buttons and listeners associated to them. Each button opens a new activity (intent). However while opening activity, it takes some time to load which causes an UI freeze. I want to avoid this by simply adding a loading circle (spinner) in between. I've searched many posts but still couldn't find anything.</p>

<p>By loading circle I mean this</p>

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