TextView、Button的drawableLeft和drawableRight与文本一起居中显示
publicclassDrawableCenterButtonextendsTextView{publicDrawableCenterButton(Contextcontext,AttributeSetattrs,intdefStyle){super(context,attrs,defStyle);}publicDrawableCenterButton(Contextcontext,Attribu