This commit is contained in:
2023-08-03 21:23:47 +05:30
parent 90452ea748
commit c1b54fa93a
15 changed files with 300 additions and 199 deletions

View File

@@ -20,6 +20,10 @@ public class RegisterCompleteFragment extends Fragment {
public RegisterationDoneFragmentBinding binding;
public static final String PROFILE_PROGRESS = "profile_progress";
int profile_progress;
public RegisterCompleteFragment(){
// required
}
@@ -29,6 +33,10 @@ public class RegisterCompleteFragment extends Fragment {
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
binding = RegisterationDoneFragmentBinding.inflate(inflater, container, false);
if (getArguments() != null){
profile_progress = getArguments().getInt(PROFILE_PROGRESS, 20);
}
binding.animIv.setAnimation(R.raw.done_anim_2);
binding.animIv.playAnimation();
@@ -40,7 +48,10 @@ public class RegisterCompleteFragment extends Fragment {
@Override
public void onAnimationEnd(@NonNull Animator animator) {
binding.title.setText(getString(R.string.your_profile_is_100_complete));
String title = "Your profile is " + (profile_progress * 20) + "% complete!";
binding.title.setText(title);
YoYo.with(Techniques.FadeIn)
.duration(100)
.playOn(binding.title);