• Post Reply Bookmark Topic Watch Topic
  • New Topic

View in LinearLayout causes incorrect rendering

 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does this code only result in 2 EditTexts which are left aligned and not 4 editText's which are centered?
I'm using java code instead of xml because I need to create a lot of editTexts.

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about setting the orientation of LinearLayout to vertical?
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Changing the orientation to vertical or horizontal (default) results also in just 2 editTexts.
 
I think I'll just lie down here for a second. And ponder this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!