Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Drawing Line: shape vs View?  RSS feed

 
Kelly Powell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Android, one can draw a line using shape or View. Assuming that I am using the code below, which is better in terms of efficiency, etc if I am planning to reuse the line in other Activities? Why?

Using shape: (Will then be use as a background for a certain text.)

Using View: (Will then be placed on top of a certain text.)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!