我對Marquee不感興趣,因為在Marquee中你無法控制選框的速度.
我試圖為textview設定動畫,但是Parent視圖會剪切最後的文本,即使包含textviews的所有父布局和視圖組都設定了兩個标志clipchildren = false,clipToPadding = false.
我錯過了什麼或者有更好的解決方法嗎?
xml看起來像
android:id="@+id/textview1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="66dp"
android:maxLines="1"
android:singleLine="true"
android:textColor="#585858"
android:textSize="32sp" >
和代碼片段看起來像
TextView textView2 = (TextView)findViewById( R.id.textview1 );
textView2.startAnimation((Animation)AnimationUtils.loadAnimation(this, R.anim.translate));