I believe the problem is with the RAM of your mobile phone, the stack trace shows this error popping out first (in your stack trace) and then causing the troubles for custom view not being
inflated.
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
Which shows, that you need to cut short the resources being used at the instance, so that VM can manage your application, otherwise you need to update the RAM;
impossible solution.