add setViewDimen API for crengine backend