這.XML將在RecycleView列表中的項目的佈局,但最後兩個按鈕覆蓋爲什麼這些ImageButtons(刪除和更新)的覆蓋
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#Ffffff"
android:baselineAligned="false"
android:weightSum="1">
<LinearLayout android:id="@+id/thumbnail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dip"
android:layout_alignParentLeft="true"
android:background="@drawable/favorite"
android:layout_marginRight="5dip">
<ImageButton
android:id="@+id/imageButton"
android:layout_width="25dip"
android:layout_height="25dip"
android:background="@null"
android:src="@drawable/nofavorite"/>
</LinearLayout>
<TextView
android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/thumbnail"
android:layout_toRightOf="@+id/thumbnail"
android:text="Rihanna Love the way lie"
android:textColor="#040404"
android:typeface="sans"
android:textSize="15dip"
android:textStyle="bold"/>
<TextView
android:id="@+id/artist"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#343434"
android:textSize="10dip"
android:layout_toRightOf="@+id/thumbnail"
android:text="Just gona stand there and ..."
android:layout_below="@+id/text_view" />
<ImageButton android:layout_width="wrap_content"
android:id="@+id/update"
android:layout_height="wrap_content"
android:src="@drawable/nofavorite"
android:background="@null"
android:layout_alignRight="@+id/artist" />
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
android:id="@+id/delete"
android:src="@drawable/favorite"
android:layout_alignRight="@+id/artist"
/>
</RelativeLayout>
它們應該在的結束對了,最後DELETE按鈕,在這個按鈕的左邊,但在屏幕右端的UPDATE按鈕,我會綁定一些東西這個按鈕以後
和另一個問題,我怎樣才能做一個divider btw這幾項?
謝謝你=)
工作就像一個魅力,謝謝 – user2582318