2
내 응용 프로그램에 세로 스크롤이있는 텍스트 뷰가 있습니다. 잘 돌아 가지 만 "애니메이션"이 없으므로별로 아름답 지 않습니다. 어떻게하면 부드러운 애니메이션을 구현할 수 있습니까? 만약 요구 사항 :부드럽게 스크롤 할 수있는 텍스트 뷰를 만드는 방법은 무엇입니까?
자바 :
TextView textscroll = (TextView) rootView.findViewById(R.id.textscroll);
textscroll.setText(getCPUinfo());
textscroll.setMovementMethod(new ScrollingMovementMethod());
하고 XML :
<TextView
android:id="@+id/CPUinfo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:maxLines="10"
tools:ignore="SelectableText" />
왜 나에게이 방법이 적합하지 않은지 모르겠다. ( –