One of my activities is freezing and lagging a lot. I tried using profiler but couldn't get much details. Is there any other tool that can help me figure out the cause for the lagging of the activity?
PS - there is a ton of flows and code in activity so no point in posting the code here
I think you have 2 reasons for lagging:
Show layout bounds
for inspect this problem.Also if your lagging depends with RecyclerView, you need to make simple ViewHolder (make simple UI with one ViewGroup and remove all logic from ViewHolder, for example: string formatting, some math...). Also better to use ListAdapter instead of RecyclerViewAdapter.
Maybe if you will provide more info, I can provide you more recomendations.