Hi,
     Two questions here:
      1)
      newline is after space, could it be possible that newline comes
after the suitable character, not only space?
      For example:
      a string "X_X_XXXX" (X means a character. _ means space) is set
to textView, and suppose
      there is at most 5 characters per line in TextView.
      line 1  X_X__(line end)
      line 2  XXXX_(line end)

      What I expect is
      line 1  X_X_X(line end)
      line 2  XXX__(line end)

      How to achieve that?

      2) I am using TextView#setText(CharSequence text)  and
SpannableString to set the value.
      Also the  SpannableString#setSpan(Object what, int start, int
end, int flags) and imageSpan are used to set insert some image to the
correct position. But I find that the text and the image don't align
nicely.
        For example, it comes out actually:

       line 1
       line 2
       line 3  -------  Text
       line 4  |     |
       line 5  -------
               (image)

       As you can see above, the text is appear in the middle(line 3)
but don't align to the buttom as the image does. I expect it can be:
      a) align to the buttom
       line 1
       line 2
       line 3  -------
       line 4  |     |
       line 5  -------  Text
               (image)

      OR
       b) align to the center.
       line 1
       line 2  -------
       line 3  |     |  Text
       line 4  -------
       line 5
              (image)

      How to control such layout?

Thanks a lot for any help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to