Skip to content

Conversation

@y-gomi112358
Copy link
Contributor

This sample is to check if Gif pictograms are displayed correctly in SpannedEllipsizer.

… and `getSize`.

If text is `android.text.Layout.SpannedEllipsizer`, `text ! = view.getText()` will be false and stop.
So changed to stop processing when `spanned.getSpanStart(this) == -1`
Copy link
Contributor

@takara727 takara727 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これだけの記述だと後でなんのためにあるかわからないかと思います。
なんのテストがわかりやすいように私だったら以下のようにするかと思います。

  • テストの先頭に GifSpan Test と記載
  • EditText のヒントに Replace $ with GIF と記載
  • Single-LineMulti-Line というラベル(ラベル用の TextView )をつけた TextView をそれぞれ用意(Multi-Line は行数制限なし)
  • EditText に文字が入力されたら即時に TextView に反映。$ のところだけ GifSpan をつける

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants