add `toggleState` api
remove useless code
add `full` attribute for `ImageView`