Please attach a
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/73/wKiom1gTIQfzYF7qAAAZxSJv34k430.png "title=" Qq20161028175657.png "alt=" Wkiom1gtiqfzyf7qaaazxsjv34k430.png "/>
One, add a textview in the layout file, set Gravity Center
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/89/73/wKiom1gTIC3TucTKAABGr3EJXXs481.png "title=" Qq20161028175328.png "alt=" Wkiom1gtic3tuctkaabgr3ejxxs481.png "/>
Second, in the activity to get this view, to set the background resources for this view, at this time we need to prepare a picture in the drawable, do not forget to give this view assign value
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/89/73/wKiom1gTIKPgyT7gAAAIDfdu5WM511.png "title=" Qq20161028175500.png "alt=" Wkiom1gtikpgyt7gaaaidfdu5wm511.png "/>
"Learning Notes" Android adds a background to numbers