android - line separator between a relativelayout and a listview -


hello have view title @ top , listview pulltorefresh functionality.

i show line separator before first item in listview:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:background="@drawable/background_azul"    android:orientation="vertical" >  <relativelayout      android:orientation="horizontal"     android:layout_width="fill_parent"     android:layout_height="50dip"     android:background="@color/usualbike" >      <textview         android:id="@+id/noticeslabel"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignparenttop="true"         android:layout_centerhorizontal="true"         android:gravity="center"         android:text="@string/titulonoticias"         android:textcolor="@color/white"         android:textsize="30dip"         android:textstyle="bold" />   </relativelayout>  <view     android:id="@+id/view01"     android:layout_width="fill_parent"     android:layout_height="2dp"     android:background="#3b5998"/>  <com.mypackage.myapp.pulltorefresh     android:id="@+id/listnews"     android:layout_width="fill_parent"     android:layout_height="fill_parent"      android:cachecolorhint="#00000000"     android:layout_marginleft="8dip"     android:layout_marginright="8dip"     android:divider="#3b5998"     android:dividerheight="2dip"/>             </linearlayout>  

but line not shown. how should this?

your code seems okay ... place separator enough use view used. use separator common practice is

< viewgroup  ....... />  < view  ......../>  < viewgroup  ......../> 

the reason not saying may background color used in view. if use same color parent not visible


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -