Inspired from Android actionbarsherlock