Android Development Notes 1.1 TextView

android: text = "hello" to display text

android:textColor="#000000"  

android: textSize = "24sp" font size used sp

android: ellipsize = "end" If the display can not be replaced with ...

andriod: drowableRight = "@ drawble / icon" icon on the right show pictures

android: singleLine = "true" one-line display

android:ellipsize="marquee"

andriod:marqueeRepeatLimit="marquee_forever"

andriod:focusable="true"

android: focusableInTouchMode = "true" Marquee


mTv1 = (TextView)FindViewById(R.id.tv_1);

mTv1.getPaint () setFlags (Paint.STRIKE_THRU_TEXT_FLAG);. underlined

mTv1.getPaint () setFlags (Paint.UNDERLINE_TEXT_FLAG);. Underline

mTv1.getPaint () setAntiAlias ​​(True);. antialiasing


Published 16 original articles · won praise 3 · Views 4535

Guess you like

Origin blog.csdn.net/qq_29697901/article/details/79502622