Re: [android-developers] Re: Creating A Bunch of Textviews Programmatically

2010-04-19 Thread Mark Murphy
Matthew Patience wrote:
 What if I use a String Builder to create just a giant TextView with
 all of the comments spanning across a ScrollView? Will this still be a
 bad idea and take up more memory?

That depends on how many comments you have. If you have only a few KB of
comments, that's not bad. If you have a few MB of comments, that will be
bad.

 Because I really don't want to have to revert to using the ListView.

Why not?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

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


Re: [android-developers] Re: Creating A Bunch of Textviews Programmatically

2010-04-19 Thread social hub
if you are just displaying comments probably u can just use Textview itself
(u can enable multiline and set text directly from
html Html.fromHtml(string) with some success.. you can try ) prob inside a
scrollview. if its just a few kb as Mark mentioned if its more than a kb or
so then its better to use listview.

My 2 cents will be to use listview if you think the comments will be larger
and more memory.



On Mon, Apr 19, 2010 at 1:37 PM, Mark Murphy mmur...@commonsware.comwrote:

 Matthew Patience wrote:
  What if I use a String Builder to create just a giant TextView with
  all of the comments spanning across a ScrollView? Will this still be a
  bad idea and take up more memory?

 That depends on how many comments you have. If you have only a few KB of
 comments, that's not bad. If you have a few MB of comments, that will be
 bad.

  Because I really don't want to have to revert to using the ListView.

 Why not?

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 Android Consulting: http://commonsware.com/consulting

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en