Now adding a confirm button

This commit is contained in:
LucasGGamerM 2022-12-27 21:19:54 -03:00
parent 9d800106cc
commit 094cd67728
2 changed files with 15 additions and 8 deletions

View File

@ -116,7 +116,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
private SwipeRefreshLayout refreshLayout;
private CoverOverlayGradientDrawable coverGradient=new CoverOverlayGradientDrawable();
private float titleTransY;
private View postsBtn, followersBtn, followingBtn;
private View postsBtn, followersBtn, followingBtn, noteEditConfirm, noteEditWrapper;
private EditText nameEdit, bioEdit, noteEdit;
private ProgressBar actionProgress, notifyProgress;
private FrameLayout[] tabViews;
@ -181,6 +181,8 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
username=content.findViewById(R.id.username);
bio=content.findViewById(R.id.bio);
noteEdit=content.findViewById(R.id.note_edit);
noteEditConfirm=content.findViewById(R.id.note_edit_confirm);
noteEditWrapper=content.findViewById(R.id.note_edit_wrapper);
followersCount=content.findViewById(R.id.followers_count);
followersLabel=content.findViewById(R.id.followers_label);
followersBtn=content.findViewById(R.id.followers_btn);
@ -473,12 +475,9 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
}
if(isOwnProfile){
noteEdit.setVisibility(View.GONE);
noteEditWrapper.setVisibility(View.GONE);
}
followersCount.setText(UiUtils.abbreviateNumber(account.followersCount));
followingCount.setText(UiUtils.abbreviateNumber(account.followingCount));
postsCount.setText(UiUtils.abbreviateNumber(account.statusesCount));

View File

@ -262,7 +262,7 @@
android:id="@+id/note_edit_wrapper"
android:layout_below="@id/username"
android:layout_marginTop="0dp"
android:padding="0dp">
android:padding="2dp">
<EditText
android:id="@+id/note_edit"
@ -278,8 +278,16 @@
android:inputType="textMultiLine|textCapSentences"
android:elevation="0dp"
android:hint="@string/sk_personal_note"
android:textColorHint="?android:textColorSecondaryInverseNoDisable"
tools:text="Founder, CEO and lead developer @Mastodon, Germany." />
android:textColorHint="?android:textColorSecondaryInverseNoDisable" />
<Button
android:id="@+id/note_edit_confirm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_fluent_checkmark_24_regular"
android:layout_marginTop="2dp"
android:layout_marginEnd="20dp"
android:layout_gravity="right|center_vertical" />
</FrameLayout>