add horizontal line to the activity  [ 578 views ]

Goal: create an easy visual separator element

Use only one line to create a line…

  <!-- for horizontal line: -->
  <View xmlns:android="http://schemas.android.com/apk/res/android" style="@style/dialogFragment_horizontal_line" />

where the dialogFragment_horizontal_line style is like this:

    <style name="dialogFragment_horizontal_line">
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">1dp</item>
        <item name="android:background">@color/control_border</item>
    </style>

nota bene: the color coming from style as well

#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }