modified the architecture: add a subclass padButton in TextView, modified
relative function to support this subclass.