Reformat layout according to Android guidelines
Replace the use of a try/catch by a simpler conditional statement
Use the LayoutInflater.from(Context) utility method

This changes nothing but makes the code shorter and simpler to read
Avoid the (dangerous) recursive call
Merge pull request #24 from cyrilmottier/code-clean-up

General code clean up