[android] Added clickable background to bookmark list items

This commit is contained in:
Alexander Zatsepin 2018-04-26 12:45:24 +03:00 committed by Roman Kuznetsov
parent 4dfca76c1c
commit 6363d93717
3 changed files with 14 additions and 9 deletions

View file

@ -1,7 +1,10 @@
<?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="@dimen/height_item_oneline">
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/height_item_oneline"
android:background="?clickableBackground">
<ImageView
android:id="@+id/iv__bookmark_color"
@ -31,4 +34,4 @@
android:layout_marginRight="@dimen/margin_base"
android:textAppearance="@style/MwmTextAppearance.Body3"/>
</RelativeLayout>
</RelativeLayout>

View file

@ -1,7 +1,10 @@
<?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="@dimen/height_item_oneline">
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/height_item_oneline"
android:background="?clickableBackground">
<ImageView
android:id="@+id/iv__bookmark_color"
@ -31,4 +34,4 @@
android:layout_marginRight="@dimen/margin_base"
android:textAppearance="@style/MwmTextAppearance.Body2"/>
</RelativeLayout>
</RelativeLayout>

View file

@ -151,5 +151,4 @@ public class BookmarkListAdapter extends RecyclerView.Adapter<Holders.BaseBookma
return BookmarkManager.INSTANCE.getBookmark(bookmarkId);
}
}
}