Change target sdk version to 10.
Add hiding titlebar in android <= 10.
Support hide title bar correctly.
Add hook onCreation() to call template methods.