Android text color control and android Control
Effect:
Usage:
<Com. bei. myapplication. app. progressTextView xmlns: ptv = "http://schemas.android.com/apk/res-auto" android: text = "learning plan course" android: background = "#000000" android: layout_width = "200px" android: layout_height = "100px" ptv: progress = "0.6"/>
Source code:
Https://github.com/beiliubei/ProgressTextView
How does android text display on a text line like a letter or paper line?
If you do not want to use the upstairs method, you need to write a control to inherit TextView, and write a line in onDraw to draw a line.
Why are text editing box images sometimes different in android development?
The display style of the control is controlled by the default style. The default style has different definitions in different Android versions. The first style shown in the question should be Holo.
----------------------------------------------------------------------------
Please follow Sina Weibo: Android mutual help Platform