Custom views support #2

Alternative solution for custom views support #3. Unlike my first solution #12, it doesn't require any additional configuration and doesn't break backward compatibility.

I actually like this solution more, but I'm not sure if it will work under different circumstances (like different device vendors, different OS versions, etc.). I've tested it on every android device I could find (~15 devices in total) and it works like a charm everywhere.