Method One: You can place a ImageView component and then set it as the color or graphic of the divider line. The definition code for the divider view is as follows:
[HTML]View Plaincopy
- <ImageView
- =
- =
- =
- />< Span style= "Border:none; padding:0px; margin:0px; " >
The results are as follows: Method two: In Android3.0 and above, LinearLayout supports direct display of divider lines. The Android:showdividers property of the Settings <LinearLayout> label can then display the divider in the corresponding position linearlayout. If you have more than one linearlayout, the display effect is the same as dividing the line between linearlayout. The Android:showdividers property can set the following 4 values: None: Do not display divider lines; Beginning: Displays the divider at the beginning of the LinearLayout; end: Displays the divider at the end of the LinearLayout ; Middle: Displays a divider between every two components in the LinearLayout: In addition to setting the Android:showdividers property, you also set the Android:divider property, which represents the image of the divider line, Need a drawable id more reference: http://www.dajo.com.cn/a/boke/anzhuo/2013/1030/86.html