-1
Das Problem ist, als nächstes, wenn ich in ImageView
mIV_WishItem
"Herz" eingegeben haben, verursacht onClick
Hintergrund ImageView
mIV_WishItem
Richtig mit zwei imageView onClick?
Der Code dieses Buttons:
holder.mIV_WishItem.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
setFavorites(holder, sectionsItem, true);
}
});
holder.mIV_pictureGoodsItem.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
SectionsItem sectionsItem = sectionsItems.get(position);
sectionItemId = sectionsItem.getId();
getDataForItemDetails(mContext);
}
});
und XML für diese Tasten
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="@dimen/_200sdp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="end"
>
<ImageView
android:id="@+id/iV_Wish"
android:layout_width="@dimen/bottom_navigation_icon"
android:layout_height="@dimen/bottom_navigation_icon"
/>
</LinearLayout>
<ImageView
android:id="@+id/iV_pictureGoods_Item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
/>
</RelativeLayout>
me
Bitte helfen Lösung finden