You are probably looking for a separator. You could achieve this by 'faking' a line-seperator. add a normal View to your parent view with a height of 1dp.
Android - Dynamically Add Views into View
If you load a view from xml and want to add the line programmatically:
LayoutInflater vi = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
ViewGroup layout = vi.inflate(R.layout.MyParentLayout, null);
View separator = new View(Context context);
set the view its layoutparams set its height: http://developer.android.com/reference/android/view/View.html#setLayoutParams(android.view.ViewGroup.LayoutParams)
layout.addView(separator);
If you create your layout programmatically:
new LinearLayout layout = new LinearLayout(context);` //or whatever kind of layout you want
I am writing this post on my mobile phone so it could contain some errors.