Can anybody tell how to draw a line in Android, perhaps with an example?
If you're working with ConstraintLayout you need to define at least 2 constraints for the line to show up. Like this:
ConstraintLayout
Though I defined 3 constraints.