mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-19 21:39:18 +00:00
Merge pull request #1307 from michaelschattgen/fix/copied-text
Fix copied text visibility
This commit is contained in:
commit
2f18907ce1
5 changed files with 18 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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" />
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue