From 060c86c090765859fefaa81505191fe4714cb954 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Sun, 19 Jul 2020 12:13:37 +0200 Subject: [PATCH] Add server avatar to user accounts (#594) Add server avatar to user accounts Co-authored-by: 6543 <6543@noreply.codeberg.org> Co-authored-by: M M Arif Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/594 Reviewed-by: 6543 <6543@noreply.codeberg.org> --- .../gitnex/adapters/UserAccountsAdapter.java | 6 ++ .../main/res/layout/list_user_accounts.xml | 98 +++++++++++-------- 2 files changed, 65 insertions(+), 39 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/adapters/UserAccountsAdapter.java b/app/src/main/java/org/mian/gitnex/adapters/UserAccountsAdapter.java index e34c9d06..64a72b04 100644 --- a/app/src/main/java/org/mian/gitnex/adapters/UserAccountsAdapter.java +++ b/app/src/main/java/org/mian/gitnex/adapters/UserAccountsAdapter.java @@ -10,7 +10,9 @@ import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import org.mian.gitnex.R; +import org.mian.gitnex.clients.PicassoService; import org.mian.gitnex.database.models.UserAccount; +import org.mian.gitnex.helpers.RoundedTransformation; import org.mian.gitnex.helpers.TinyDB; import org.mian.gitnex.helpers.Toasty; import java.util.List; @@ -32,6 +34,7 @@ public class UserAccountsAdapter extends RecyclerView.Adapter { // use later to delete an account @@ -93,6 +97,8 @@ public class UserAccountsAdapter extends RecyclerView.Adapter - + android:orientation="vertical"> + + + + + + + + + + + + + android:textSize="14sp" /> - - - - - - - +