텍스트뷰에 marquee를 적용하려 합니다.
그런데 width를 하드코딩으로 100dp를 주면 마퀴가 작동을 하는데
match_parent 를 주면 작동을 하지 않습니다. 텍스트가 짧은것도 아니고 굉장히 늘려서도
테스트를 해 봤는데 작동을 하지 않네요..
텍스트뷰의 속성은 다음과 같습니다.
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent" >
<TextView
android:id="@+id/tv_network_address"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:gravity="center"
android:typeface="sans"
android:paddingLeft="3dp"
android:paddingRight="3dp"
android:textColor="@color/white"
android:textSize="20sp"
android:textStyle="bold"
android:singleLine="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusable="true"
android:ellipsize="marquee" />
</LinearLayout>