From 81311d3f939c75a1253337b4dac852668a81a073 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 3 Mar 2019 16:25:22 +0200 Subject: [PATCH] do not dim non-current profiles the current one is already accented with a background --- .../mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java | 2 -- app/src/main/res/layout/profile_list_content.xml | 1 - 2 files changed, 3 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java index a96517c2..9f2c48a2 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java @@ -146,7 +146,6 @@ public class ProfilesRecyclerViewAdapter MobileLedgerProfile myProfile = (MobileLedgerProfile) holder.itemView.getTag(); final MobileLedgerProfile currentProfile = Data.profile.get(); final boolean sameProfile = currentProfile.equals(myProfile); - view.setAlpha(sameProfile ? 1 : 0.5f); }); View.OnTouchListener dragStarter = (v, event) -> { @@ -179,7 +178,6 @@ public class ProfilesRecyclerViewAdapter holder.mEditButton.setOnClickListener(mOnClickListener); final boolean sameProfile = currentProfile.equals(profile); - holder.itemView.setAlpha(sameProfile ? 1 : 0.5f); holder.itemView .setBackground(sameProfile ? new ColorDrawable(Colors.tableRowDarkBG) : null); if (editingProfiles.get()) { diff --git a/app/src/main/res/layout/profile_list_content.xml b/app/src/main/res/layout/profile_list_content.xml index 6f09955a..19b77e5d 100644 --- a/app/src/main/res/layout/profile_list_content.xml +++ b/app/src/main/res/layout/profile_list_content.xml @@ -20,7 +20,6 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/profile_list_item" - android:alpha="0.50" android:animateLayoutChanges="true" android:layout_width="match_parent" android:layout_height="@dimen/thumb_row_height" -- 2.39.2