Can anybody tell how to draw a line in Android, perhaps with an example?
or if you just want a line
TextView line = new TextView(this); line.setBackgroundResource(android.R.color.holo_red_dark); line.setHeight((int) Utility.convertDpToPixel(1,this));