안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요.
아래와 같은 Layout의 TextView 에 들어가는 텍스트의 길이가 길어서 화면에 다 보여줄 수 없을 때,
Text 가 Sliding 되도록 하고 싶은데, 어떻게 해야되나요?
<RelativeLayout android:id="@+id/network_info_cb_relative_layout" android:layout_height="fill_parent" android:layout_width="fill_parent" android:minHeight="30dip" android:gravity="right|center_vertical" android:layout_marginLeft="10dip" android:layout_marginRight="10dip"> <TextView android:id="@+id/network_info_cb_text_view" android:hint="@string/no_broadcast_msg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="15dip" android:textColor="#ffffffff" android:scrollHorizontally="true" android:selectAllOnFocus="true"> </TextView> </RelativeLayout>
2010.04.01 14:11:23
<TextView
android:id="@+id/WantaMarqueeText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:singleLine="true"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:text="aksjdflkjaslflkadsflkjasdnhas;hasodfhlodflkasjdfkjaslfnkjlliuoehrofhesobfveiovoiuaerfoewfuobhroh"
/>
이렇게 하면 됩니다. 참조 하시길......