Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
TextViewの省略記号が「.」になってしまう
221 views
Skip to first unread message
Cries Dev
unread,
Feb 18, 2014, 6:33:23 AM
2/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
初めて質問いたします。
TextView内に文章を表示させて、指定の幅以上になる場合は文章の後ろを省略して「...」という省略記号を表示させたいと考えています。
ところが、端末「Nexus 7」を使って以下の記述で表示させた場合、「abcdef.」というようにピリオド1つの省略記号で表示されてしまいました。
<TextView style="@style/hogehoge"
android:id="@+id/fugafuga"
android:visibility="visible"
android:text="abcdefghijklmn"
android:ellipsize="end"
android:scrollHorizontally="true"
android:singleLine="true"
android:maxWidth="110sp" />
android:ellipsize="end" を android:ellipsize="middle" に変更した場合は、「abc.lmn」というように中央にピリオド1つが入るので、見切れているのではないと考えています。
このような場合に、省略記号を「...」と表示させることは可能でしょうか。
ご教示いただけますと幸いです。
Reply all
Reply to author
Forward
0 new messages