I would recommend you take a look at this:

http://developer.android.com/reference/android/text/Layout.html

This class does the actual work of  displaying text in a TextView. Or just
start with Canvas methods that measure and draw text and take it from there.

--
Kostya Vasilyev
04.11.2011 18:40 пользователь "Fabian Ricardo Rodrìgueza Avellaneda" <
[email protected]> написал:

>
> On 4 nov, 08:29, John Davis <[email protected]> wrote:
> > On Fri, Nov 4, 2011 at 6:57 AM, lbendlin <[email protected]> wrote:
> > > I guess this is your lucky day - you will be the first one to develop
> this.  I would start with finding out how many columns to display on the
> current device and screen resolution ( don't be silly and try to cram more
> than one column onto a phone in portrait). Then I would make the first
> column of infinite-ish height and flow the text into it. Then I would find
> out what the last wholly visible word is and copy the text after that into
> the second column etc.  Of course you'll need to decide if you allow
> scrolling or not, and what that does to the UX...
> >
> > That is what I was thinking.  Two columns in portrait mode?
> >
> > But if you want to do it I have to ask - have you tried to put two
> > list
>
>
> @Jhon Davis and @ibendlin thanks for your responses. @Jhon Davis , the
> problem is more complex that I said, because the component have to
> distribute a complete paragraph with aleatorie size (at least 200
> characters and forward) in minumum two columns and forward, further
> more you can should rise the letter font sizes, so this will rise the
> number of  columns and expand themself. So , only  put a number of
> predeterminat columns is not so well.
>
> I'm thinking what component is the best to be the column, i mean,  a
> TextView (with a set number of lines) inside a LinearLayout  or a list
> as much than will i need ?, and write and algorithm to fill the
> necesary columns depend on the paragraph sizes and font sizes.
>
> Any pointers on this?
> Thanks a lot!
>
> --
> 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

-- 
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