[android-developers] Re: fit text on 1 line

2009-09-22 Thread Dianne Hackborn
You need to look at the data that you are getting from the server, and know what encoding it is in. Java is UTF-16, so when you build a String from the data from the server you need to tell it what encoding the original text is in. On Tue, Sep 22, 2009 at 4:45 AM, Wouter wrote: > > How can i ch

[android-developers] Re: fit text on 1 line

2009-09-22 Thread Wouter
hey, thank you for your answer! But how can i set up the text encoding? Wouter On Sep 22, 6:49 pm, Dianne Hackborn wrote: > You need to look at the data that you are getting from the server, and know > what encoding it is in.  Java is UTF-16, so when you build a String from the > data from the

[android-developers] Re: fit text on 1 line

2009-09-22 Thread Wouter
How can i check the text encoding? On 21 sep, 21:25, Marco Nelissen wrote: > On Mon, Sep 21, 2009 at 10:36 AM, Wouter wrote: > > > Ok I had to place android:singleLine="true" (http://code.google.com/p/ > > android/issues/detail?id=882) > > > and now it is working :) > > > Other question: > > >

[android-developers] Re: fit text on 1 line

2009-09-21 Thread Marco Nelissen
On Mon, Sep 21, 2009 at 10:36 AM, Wouter wrote: > > Ok I had to place android:singleLine="true" (http://code.google.com/p/ > android/issues/detail?id=882) > > and now it is working :) > > Other question: > > when you look at this picture: http://snapplr.com/stxg you can see > that there are weird

[android-developers] Re: fit text on 1 line

2009-09-21 Thread Wouter
Ok I had to place android:singleLine="true" (http://code.google.com/p/ android/issues/detail?id=882) and now it is working :) Other question: when you look at this picture: http://snapplr.com/stxg you can see that there are weird symbols in my text. The text is in dutch but if there are symbols

[android-developers] Re: fit text on 1 line

2009-09-21 Thread Wouter
I have tried this but the ellipsis (...) is not appearing.. On Sep 21, 7:28 pm, "Mark Murphy" wrote: > > Hey, > > > I am working on a project and i need to fit a text (string) on line at > > a textView. > > I know I can work with maxLines but if the text does not fit the view, > > it has to end

[android-developers] Re: fit text on 1 line

2009-09-21 Thread Mark Murphy
> > Hey, > > I am working on a project and i need to fit a text (string) on line at > a textView. > I know I can work with maxLines but if the text does not fit the view, > it has to end with "..." > so for example directed by brad pitt an... > > So can users see that it is not the end of the tex