From 30b72cf8f4bb8353aea76c881f470f2032f2fb10 Mon Sep 17 00:00:00 2001 From: nivl4 Date: Mon, 23 May 2016 14:03:49 +0800 Subject: [PATCH] change PartyMemberRecyclerViewAdapter to use AvatarView --- Habitica/res/layout-w320dp/party_member.xml | 14 ++++++++------ Habitica/res/layout/party_member.xml | 14 ++++++++------ .../PartyMemberRecyclerViewAdapter.java | 19 ++++--------------- 3 files changed, 20 insertions(+), 27 deletions(-) diff --git a/Habitica/res/layout-w320dp/party_member.xml b/Habitica/res/layout-w320dp/party_member.xml index b45981566..c859cfa3f 100644 --- a/Habitica/res/layout-w320dp/party_member.xml +++ b/Habitica/res/layout-w320dp/party_member.xml @@ -1,5 +1,6 @@ @@ -10,13 +11,14 @@ android:layout_margin="5dp" android:orientation="horizontal"> - + android:layout_height="147dp" + android:layout_marginRight="5dp" + app:showBackground="true" + app:showMount="true" + app:showPet="true" /> @@ -10,13 +11,14 @@ style="@style/CardContent" android:orientation="horizontal"> - + android:layout_height="90dp" + android:layout_marginRight="5dp" + app:showBackground="false" + app:showMount="false" + app:showPet="false" /> = 320) { - userPicture = new UserPicture(itemView.getContext(), true, true); - } else { - userPicture = new UserPicture(itemView.getContext(), false, false); - } } public void bind(HabitRPGUser user) { android.content.Context ctx = itemView.getContext(); - userPicture.setUser(user); - userPicture.setPictureOn(imageView); + avatarView.setUser(user); AvatarWithBarsViewModel.setHpBarData(hpBar, user.getStats(), ctx);