have you looked at the dialogs module? The form_dialog can make settings type ui's.
from dialogs import *
dead={'type':'switch','title':'dead'}
resting={'type':'switch','title':'resting'}
stunned={'type':'switch','title':'just stunned'}
section1=('Parrot',[dead, resting, stunned] )
spam={'type':'switch','title':'spam'}
spamity={'type':'switch','title':'spam'}
spaM={'type':'switch','title':'spam'}
section2=('Spam',[spam, spamity, spaM],'SpammitySpam' )
f = form_dialog(title='Python Settings', sections=
[section1, section2])
As to your original question, you can use an imageview with an image of a line that you stretch out. Also, you could use a custom view with drawing, but that requires code, cannot really layout in ui editor.