1, 内部距离边框间距
android:padding;
android:paddingLeft;
android:paddingRight;........
2, 外部间距
android:lineSpacingExtra="5dp" //距离多大
android:lineSpacingMultiplier="" //距离的倍数
3,水平滚动效果
<!--
1、android:singleLine=true:表示使用单行文字,多行文字也就无所谓使用Marquee效果了
2、android:marqueeRepeatLimit:设置走马灯滚动的次数
3、android:ellipsize:设置了文字过长时如何切断文字,可以有none, start,middle, end, 如果使用走马灯效果则设为marquee
4、android:focusableInTouchMode:在触摸模式时,控件是否可以接收焦点
5、android:focusable:Android的缺省行为是在控件获得Focus时才会显示走马灯效果
-->
<TextView
android:id="@+id/tvPMD"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/tvPMD"
android:singleLine="true"
android:ellipsize="marquee"
android:focusableInTouchMode="true"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"/>