问题是:为嘛item的竖线显示不出来,直接上item的一个布局代码
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:descendantFocusability="blocksDescendants" >
<View
android:layout_width="2dp"
android:layout_height="fill_parent"
android:layout_centerHorizontal="true"
android:visibility="visible"
android:background="#cccccc" />
<ImageView
android:id="@+id/itemincome_deleteicon"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_centerHorizontal="true"
android:src="@drawable/account_delete" />
<!-- android:layout_marginRight="90dp" -->
<!-- android:layout_toLeftOf="@+id/account_item_incomeicon" -->
<ImageView
android:id="@+id/account_item_incomeicon"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_centerHorizontal="true"
android:src="@drawable/account_income" />
<ImageView
android:id="@+id/itemincome_editicon"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_centerHorizontal="true"
android:src="@drawable/account_edit" />
<!-- android:layout_marginLeft="90dp" -->
<!-- android:layout_toRightOf="@+id/account_item_incomeicon" -->
<LinearLayout
android:id="@+id/account_item_textlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="14dp"
android:layout_toLeftOf="@+id/account_item_incomeicon"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:orientation="horizontal"
android:paddingBottom="7dp" >
<TextView
android:id="@+id/account_income_money"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="9dp"
android:textColor="@color/account_moneytext"
android:textSize="14sp" />
<TextView
android:id="@+id/account_income_income"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/income"
android:textColor="@color/black"
android:textSize="14sp" />
</LinearLayout>
<TextView
android:id="@+id/account_income_remark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="这是备注"
android:textColor="@color/account_moneytext"
android:textSize="12sp" />
</LinearLayout>
<ImageView
android:id="@+id/account_income_photo"
android:layout_width="83dp"
android:layout_height="44dp"
android:layout_marginLeft="14dp"
android:layout_toRightOf="@+id/account_item_incomeicon" />
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:descendantFocusability="blocksDescendants" >
<View
android:layout_width="2dp"
android:layout_height="fill_parent"
android:layout_centerHorizontal="true"
android:visibility="visible"
android:background="#cccccc" />
<ImageView
android:id="@+id/itemincome_deleteicon"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_centerHorizontal="true"
android:src="@drawable/account_delete" />
<!-- android:layout_marginRight="90dp" -->
<!-- android:layout_toLeftOf="@+id/account_item_incomeicon" -->
<ImageView
android:id="@+id/account_item_incomeicon"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_centerHorizontal="true"
android:src="@drawable/account_income" />
<ImageView
android:id="@+id/itemincome_editicon"
android:layout_width="28dp"
android:layout_height="28dp"
android:layout_centerHorizontal="true"
android:src="@drawable/account_edit" />
<!-- android:layout_marginLeft="90dp" -->
<!-- android:layout_toRightOf="@+id/account_item_incomeicon" -->
<LinearLayout
android:id="@+id/account_item_textlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="14dp"
android:layout_toLeftOf="@+id/account_item_incomeicon"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:orientation="horizontal"
android:paddingBottom="7dp" >
<TextView
android:id="@+id/account_income_money"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="9dp"
android:textColor="@color/account_moneytext"
android:textSize="14sp" />
<TextView
android:id="@+id/account_income_income"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/income"
android:textColor="@color/black"
android:textSize="14sp" />
</LinearLayout>
<TextView
android:id="@+id/account_income_remark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="这是备注"
android:textColor="@color/account_moneytext"
android:textSize="12sp" />
</LinearLayout>
<ImageView
android:id="@+id/account_income_photo"
android:layout_width="83dp"
android:layout_height="44dp"
android:layout_marginLeft="14dp"
android:layout_toRightOf="@+id/account_item_incomeicon" />
</RelativeLayout>