the-generalist.com

  • Increase font size
  • Default font size
  • Decrease font size
joomla templates, wordpress themes, drupal, datalife engine, graphics, seo,
Home

Crash Creating a TableLayout Inside a ScrollView in Code

E-mail Print PDF
I added a ScrollView to a TableLayout which resulted in the application crashing.  After some trial and error I tracked the problem down to this line:
table.setLayoutParams(new TableRow.LayoutParams(
TableRow.LayoutParams.FILL_PARENT,
TableRow.LayoutParams.FILL_PARENT));

Since it’s hard to find examples showing interface creation in code, here’s the basic working code:

ScrollView scroll = new ScrollView(this);
TableLayout table = new TableLayout(this);
scroll.addView(table);
setContentView(scroll);
 

 


Last Updated on Wednesday, 04 August 2010 00:48  

Comments  

 
0 #12 Trucos para juegos 2017-04-07 05:12
?Un juegos entretenido a pesar de eso los hay mucho mejores

Hecha un ojo y visita mi website- Trucos para juegos: http://www.tuningout.com/__media__/js/netsoltrademark.php?d=trucoteca.com
Quote
 
 
0 #11 psychic readings 2016-03-20 20:44
Wow, that's what I was seeking for, what a data! present here at this
website, thanks admin of this site.

Feel free to surf to my web page ... psychic readings: http://gurumediagroup.co.uk/view_channel.php?user=EdmundoTrigg12
Quote
 
 
0 #10 psychic readings 2016-01-30 04:55
This design is spectacular! You definitely know how to keep a reader amused.
Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Wonderful
job. I really loved what you had to say, and more than that, how you presented it.

Too cool!

My website; psychic readings: http://Ichingpsychics.com/
Quote
 
 
0 #9 free chat with 2015-05-25 18:48
Ahaa, its nice discussion on the tarot reader
topic of this post here at this card reader web site, I have read all that, so
now me also commenting at this place.
Quote
 
 
0 #8 Free Chat with 2015-05-25 05:36
Wonderful tarot work! That is the kind of info that are meant to be shared around the net.

Thanks =)
Quote
 
 
0 #7 Free Chat with 2015-05-24 12:16
Ahaa, its pleasant dialogue on the astrloger/psychic topic of this article at this place at this astrloger/psychic website, I have read
all that, so now me also commenting here.
Quote
 
 
0 #6 Free Chat with 2015-05-24 09:54
I have been surfing online greater than three hours today,
yet I by no means found any interesting article like yours.

It is beautiful value enough for me. Personally, if all astrloger/psychic made
just right content as you probably did, the web will
probably be a lot more useful than ever before.
Quote
 
 
0 #5 free Psychic 2015-05-19 23:42
Hi, I check your astrology blogs like every week.
Your humoristic style is awesome, keep doing what you're doing!
Quote
 
 
0 #4 http://psychic- 2015-05-19 18:37
I simply could not leave your tarot web site before suggesting that I
actually loved the standard info a person provide for your guests?
Is going to be back incessantly in order to check up on new posts
Quote
 
 
0 #3 http://i-tarots.com/ 2015-05-19 12:49
I am sure this tarot reader post has touched all the internet
viewers, its really really nice piece of writing !
Quote
 

Add comment


Security code
Refresh

Main Menu