mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-22 14:59:14 +00:00
Fix copied text visibility
This commit is contained in:
parent
dfd720b406
commit
52ecf12576
5 changed files with 18 additions and 26 deletions
|
@ -161,10 +161,6 @@ public class EntryHolder extends RecyclerView.ViewHolder {
|
||||||
profileNameLayoutParams.setMarginStart(0);
|
profileNameLayoutParams.setMarginStart(0);
|
||||||
_profileName.setLayoutParams(profileNameLayoutParams);
|
_profileName.setLayoutParams(profileNameLayoutParams);
|
||||||
_profileName.setVisibility(View.VISIBLE);
|
_profileName.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
copiedLayoutParams = (RelativeLayout.LayoutParams) _profileCopied.getLayoutParams();
|
|
||||||
copiedLayoutParams.addRule(RelativeLayout.ABOVE, R.id.profile_account_name);
|
|
||||||
_profileCopied.setLayoutParams(copiedLayoutParams);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case END:
|
case END:
|
||||||
|
@ -175,10 +171,6 @@ public class EntryHolder extends RecyclerView.ViewHolder {
|
||||||
profileNameLayoutParams.removeRule(RelativeLayout.BELOW);
|
profileNameLayoutParams.removeRule(RelativeLayout.BELOW);
|
||||||
_profileName.setLayoutParams(profileNameLayoutParams);
|
_profileName.setLayoutParams(profileNameLayoutParams);
|
||||||
_profileName.setVisibility(View.VISIBLE);
|
_profileName.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
copiedLayoutParams = (RelativeLayout.LayoutParams) _profileCopied.getLayoutParams();
|
|
||||||
copiedLayoutParams.addRule(RelativeLayout.ABOVE, R.id.description);
|
|
||||||
_profileCopied.setLayoutParams(copiedLayoutParams);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
<translate
|
<translate
|
||||||
android:duration="300"
|
android:duration="300"
|
||||||
android:fromYDelta="0"
|
android:fromYDelta="-200%"
|
||||||
android:toYDelta="100%" />
|
android:toYDelta="-100%" />
|
||||||
|
|
||||||
<alpha
|
<alpha
|
||||||
android:fromAlpha="0.0"
|
android:fromAlpha="0.0"
|
||||||
|
|
|
@ -65,18 +65,6 @@
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="16dp"
|
||||||
android:paddingStart="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
|
<RelativeLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -107,6 +95,18 @@
|
||||||
|
|
||||||
</RelativeLayout>
|
</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
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
|
@ -72,8 +72,8 @@
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:text="@string/copied"
|
android:text="@string/copied"
|
||||||
android:layout_above="@+id/description"
|
android:layout_alignStart="@+id/description"
|
||||||
android:layout_alignStart="@+id/profile_code"
|
android:layout_below="@id/description"
|
||||||
android:textSize="13sp"
|
android:textSize="13sp"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
|
|
@ -73,8 +73,8 @@
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:text="@string/copied"
|
android:text="@string/copied"
|
||||||
android:layout_above="@+id/description"
|
android:layout_alignStart="@+id/description"
|
||||||
android:layout_alignStart="@+id/profile_code"
|
android:layout_below="@id/description"
|
||||||
android:textSize="13sp"
|
android:textSize="13sp"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue