• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

View in LinearLayout causes incorrect rendering

 
Wouter Oet
Saloon Keeper
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
Saloon Keeper
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic