옵션의 의미 : 의미와 효과가 무엇안드로이드 : Ellipsise, 나는 우리가 같은 <code>android:ellipsize</code> 4 개 값을 설정할 수 있습니다 본
없음, 시작, 중간, 끝 및 천막
이것들 각각을 설정하는 것?
옵션의 의미 : 의미와 효과가 무엇안드로이드 : Ellipsise, 나는 우리가 같은 <code>android:ellipsize</code> 4 개 값을 설정할 수 있습니다 본
없음, 시작, 중간, 끝 및 천막
이것들 각각을 설정하는 것?
는 XML 다음 내가 사용한 android:ellipsize
이
를 작동하는 방법을 알고 아래의 이미지를 참조
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="4"
android:ellipsize="none"
android:singleLine="false"
android:text="Hi make this a very long string that wraps at least 4 lines, seriously make it really really long so it gets cut off at the fourth line not joke. Just do it!"
android:layout_marginBottom="25dip"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="4"
android:ellipsize="start"
android:singleLine="false"
android:text="Hi make this a very long string that wraps at least 4 lines, seriously make it really really long so it gets cut off at the fourth line not joke. Just do it!"
android:layout_marginBottom="25dip"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="4"
android:ellipsize="middle"
android:singleLine="false"
android:text="Hi make this a very long string that wraps at least 4 lines, seriously make it really really long so it gets cut off at the fourth line not joke. Just do it!"
android:layout_marginBottom="25dip"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="4"
android:ellipsize="end"
android:singleLine="false"
android:text="Hi make this a very long string that wraps at least 4 lines, seriously make it really really long so it gets cut off at the fourth line not joke. Just do it!"
android:layout_marginBottom="25dip"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="4"
android:ellipsize="marquee"
android:text="Hi make this a very long string that wraps at least 4 lines, seriously make it really really long so it gets cut off at the fourth line not joke. Just do it!" />
</LinearLayout>
http://stackoverflow.com/questions/2160619/android-ellipsize-multiline-textview –