Horizontale Linie in Android-App
So bekommt man in Android eine horizontal rule (line)
Benutze ein View mit fester Höhe:
Beispielsweise ein TextView:
<TextView
android:layout_width="fill_parent"
android:layout_height="2dip"
android:background="#FF0099CC"
/>
oder im code:
View ruler = new View(myContext); ruler.setBackgroundColor(0xFF0099CC);
theParent.addView(ruler,
new ViewGroup.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, 2));