obtainStyledAttributes made to work