Fix copied text visibility

This commit is contained in:
Michael Schättgen 2024-03-15 21:34:59 +01:00
parent dfd720b406
commit 52ecf12576
5 changed files with 18 additions and 26 deletions

View File

@ -161,10 +161,6 @@ public class EntryHolder extends RecyclerView.ViewHolder {
profileNameLayoutParams.setMarginStart(0);
_profileName.setLayoutParams(profileNameLayoutParams);
_profileName.setVisibility(View.VISIBLE);
copiedLayoutParams = (RelativeLayout.LayoutParams) _profileCopied.getLayoutParams();
copiedLayoutParams.addRule(RelativeLayout.ABOVE, R.id.profile_account_name);
_profileCopied.setLayoutParams(copiedLayoutParams);
break;
case END:
@ -175,10 +171,6 @@ public class EntryHolder extends RecyclerView.ViewHolder {
profileNameLayoutParams.removeRule(RelativeLayout.BELOW);
_profileName.setLayoutParams(profileNameLayoutParams);
_profileName.setVisibility(View.VISIBLE);
copiedLayoutParams = (RelativeLayout.LayoutParams) _profileCopied.getLayoutParams();
copiedLayoutParams.addRule(RelativeLayout.ABOVE, R.id.description);
_profileCopied.setLayoutParams(copiedLayoutParams);
break;
}
}

View File

@ -5,8 +5,8 @@
<translate
android:duration="300"
android:fromYDelta="0"
android:toYDelta="100%" />
android:fromYDelta="-200%"
android:toYDelta="-100%" />
<alpha
android:fromAlpha="0.0"

View File

@ -65,18 +65,6 @@
android:paddingRight="16dp"
android:paddingStart="16dp">
<TextView
android:id="@+id/profile_copied"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:includeFontPadding="false"
android:maxLines="1"
android:text="@string/copied"
android:layout_above="@+id/description"
android:layout_alignStart="@+id/profile_code"
android:textSize="16sp"
android:visibility="invisible" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -107,6 +95,18 @@
</RelativeLayout>
<TextView
android:id="@+id/profile_copied"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:includeFontPadding="false"
android:maxLines="1"
android:text="@string/copied"
android:layout_alignStart="@+id/description"
android:layout_below="@id/description"
android:textSize="16sp"
android:visibility="invisible" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -72,8 +72,8 @@
android:includeFontPadding="false"
android:maxLines="1"
android:text="@string/copied"
android:layout_above="@+id/description"
android:layout_alignStart="@+id/profile_code"
android:layout_alignStart="@+id/description"
android:layout_below="@id/description"
android:textSize="13sp"
android:visibility="invisible" />

View File

@ -73,8 +73,8 @@
android:includeFontPadding="false"
android:maxLines="1"
android:text="@string/copied"
android:layout_above="@+id/description"
android:layout_alignStart="@+id/profile_code"
android:layout_alignStart="@+id/description"
android:layout_below="@id/description"
android:textSize="13sp"
android:visibility="invisible" />