Fianlly got my widget to work correctly. Might still tweak the UI. Need to see if my actionbar meets the requirements.