From: Damyan Ivanov Date: Sun, 3 Mar 2019 14:25:22 +0000 (+0200) Subject: do not dim non-current profiles X-Git-Tag: v0.7~17 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=81311d3f939c75a1253337b4dac852668a81a073;p=mobile-ledger.git do not dim non-current profiles the current one is already accented with a background --- 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"