From 9732c48fde5fb079c7189f2f3c66d4648e0958a2 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 26 Aug 2023 17:48:53 -0300 Subject: [PATCH] feat: update profile note edit design --- .../android/fragments/ProfileFragment.java | 2 +- .../src/main/res/drawable/bg_note_edit.xml | 28 ++++++++++++++++--- .../src/main/res/layout/fragment_profile.xml | 9 +++--- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index 43550d929..6581efba7 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -270,7 +270,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList noteEdit = content.findViewById(R.id.note_edit); noteWrap = content.findViewById(R.id.note_edit_wrap); - Button noteEditConfirm = content.findViewById(R.id.note_edit_confirm); + ImageButton noteEditConfirm = content.findViewById(R.id.note_edit_confirm); noteEditConfirm.setOnClickListener((v -> { if (!noteEdit.getText().toString().trim().equals(note)) { diff --git a/mastodon/src/main/res/drawable/bg_note_edit.xml b/mastodon/src/main/res/drawable/bg_note_edit.xml index 5f6087637..2f956cfe5 100644 --- a/mastodon/src/main/res/drawable/bg_note_edit.xml +++ b/mastodon/src/main/res/drawable/bg_note_edit.xml @@ -1,5 +1,25 @@ - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mastodon/src/main/res/layout/fragment_profile.xml b/mastodon/src/main/res/layout/fragment_profile.xml index e21befcb8..2d5a041fb 100644 --- a/mastodon/src/main/res/layout/fragment_profile.xml +++ b/mastodon/src/main/res/layout/fragment_profile.xml @@ -206,18 +206,19 @@ android:visibility="gone" android:hint="@string/mo_personal_note"/> -