我希望在Animation
中显示我的文字(例如)中的所有文字:
“Lorem Ipsum是占位符文本,常用于图形,打印, 和出版业预览布局和视觉模型。“
但是我在程序运行时只能在"Lorem Ipsum is placeholder text commonly"
中看到animation
,或者如果我转动设备:“Lorem Ipsum是图形中常用的占位符文本”,这意味着只能看到一行
我使用了这段代码:
<TextView
android:id="@+id/textViewMarqToRight"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:maxLines="1" />
但我还在寻找。
答案 0 :(得分:0)
试试这个:
删除最大第1行。
<TextView
android:id="@+id/textViewMarqToRight"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp" />
您还可以尝试:android:inputType="textMultiLine"