Santosh Bhandary
3 years ago
59 changed files with 1286 additions and 203 deletions
-
1app/src/main/java/com/swifttech/remit/jmecustomer/base/PrefKeys.java
-
3app/src/main/java/com/swifttech/remit/jmecustomer/common/customwidgets/common/GenericEditTextPromptDialog.java
-
27app/src/main/java/com/swifttech/remit/jmecustomer/features/home/gateway/HomeV2Gateway.java
-
12app/src/main/java/com/swifttech/remit/jmecustomer/features/home/model/UserInfoModelV2.java
-
20app/src/main/java/com/swifttech/remit/jmecustomer/features/home/presenter/HomeNotificationHandler.java
-
10app/src/main/java/com/swifttech/remit/jmecustomer/features/home/presenter/HomeV2InteractorInterface.java
-
13app/src/main/java/com/swifttech/remit/jmecustomer/features/home/presenter/HomeV2PresenterInterface.java
-
135app/src/main/java/com/swifttech/remit/jmecustomer/features/home/presenter/HomeViewModel.java
-
35app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/HomeActivityV2.java
-
32app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/HomeFragmentV2.java
-
73app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/notifications/EmailNotVerifiedView.java
-
10app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/notifications/HomeNotificiationViewFactory.java
-
26app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/existingCustomer/gateway/ExistingExistingKYCV3Gateway.java
-
10app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/existingCustomer/presenter/ExistingKYCV3GatewayInterface.java
-
19app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/existingCustomer/presenter/ExistingKYCV3PresenterInterface.java
-
113app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/existingCustomer/presenter/ExistingKYCV3ViewModel.java
-
38app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/existingCustomer/view/ExistingKYCV3Activity.java
-
7app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/existingCustomer/view/termsAndConditions/ExistingKycTermsAndConditionFragment.java
-
26app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/newCustomer/gateway/KYCV3Gateway.java
-
10app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/newCustomer/presenter/KYCV3GatewayInterface.java
-
12app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/newCustomer/presenter/KYCV3PresenterInterface.java
-
114app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/newCustomer/presenter/KYCV3ViewModel.java
-
37app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/newCustomer/view/KYCV3Activity.java
-
6app/src/main/java/com/swifttech/remit/jmecustomer/features/kyc/newCustomer/view/termsAndCondition/NewKycTermsAndConditionFragment.java
-
13app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientlisting/model/recipientlisting/ReceiverInfoModel.java
-
30app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/gateway/recipientaddeditV3/RecipientAddEditV3Gateway.java
-
6app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/gateway/recipientaddeditV3/RecipientAddEditV3GatewayInterface.java
-
31app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/gateway/recipientlistingV3/RecipientListingV3Gateway.java
-
12app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/model/recipientlistingV3/ReceiverInfoV3Model.java
-
146app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/RecipientAddEditBaseV3ViewModel.java
-
4app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/RecipientAddV3ContractInterface.java
-
4app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/RecipientDetailValidatorV3.java
-
5app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/RecipientPresenterInterface.java
-
9app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/add/RecipientAddV3ViewModel.java
-
10app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/edit/RecipientEditV3ViewModel.java
-
10app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientlistingV3/RecipientListingV3InteractorInterface.java
-
117app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientlistingV3/RecipientListingV3Presenter.java
-
6app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/presenter/recipientlistingV3/RecipientListingV3PresenterInterface.java
-
12app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/recipientaddeditV3/BeneficiaryAddEditV3TermsFragment.java
-
36app/src/main/java/com/swifttech/remit/jmecustomer/features/recipientmanagement/view/recipientlistingV3/RecipientListingV3Activity.java
-
4app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/existingcustomer/ExistingCustomerRegisterViewModelFactory.java
-
1app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/existingcustomer/presenter/ExistingCustomerRegisterV2PresenterInterface.java
-
8app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/existingcustomer/presenter/ExistingCustomerRegisterViewModel.java
-
25app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/existingcustomer/view/ExistingCustomerRegisterV2Activity.java
-
4app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/existingcustomer/view/ExistingCustomerRegistrationRequestFragment.java
-
4app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/existingcustomer/view/ExistingCustomerRegistrationSubmitFragment.java
-
3app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/newcustomer/presenter/NewRegisterV2Presenter.java
-
1app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/newcustomer/presenter/NewRegisterV2PresenterInterface.java
-
21app/src/main/java/com/swifttech/remit/jmecustomer/features/registerv2/newcustomer/view/NewRegisterV2Activity.java
-
5app/src/main/java/com/swifttech/remit/jmecustomer/features/renewId/presenter/RenewIdV2ViewModel.java
-
16app/src/main/java/com/swifttech/remit/jmecustomer/features/sendmoney/view/consent/UserConsentSendMoneyFragment.java
-
18app/src/main/java/com/swifttech/remit/jmecustomer/features/webbrowser/WebBrowserFragmentV2.java
-
11app/src/main/java/com/swifttech/remit/jmecustomer/utils/Constants.java
-
4app/src/main/java/com/swifttech/remit/jmecustomer/utils/https/API_URL.java
-
19app/src/main/java/com/swifttech/remit/jmecustomer/utils/https/ApiEndpoints.java
-
12app/src/main/java/com/swifttech/remit/jmecustomer/utils/https/MessageResponseDataModel.java
-
12app/src/main/res/layout/dialog_generci_edittext_prompt.xml
-
3app/src/main/res/values/strings.xml
-
26app/src/test/java/com/swifttech/remit/jmecustomer/HomeNotificationHandlerTest.java
@ -0,0 +1,73 @@ |
|||
package com.swifttech.remit.jmecustomer.features.home.view.notifications; |
|||
|
|||
import android.animation.ObjectAnimator; |
|||
import android.animation.ValueAnimator; |
|||
import android.content.Context; |
|||
import android.graphics.drawable.Drawable; |
|||
import android.util.AttributeSet; |
|||
import android.view.LayoutInflater; |
|||
import android.view.View; |
|||
import android.widget.ImageView; |
|||
import android.widget.TextView; |
|||
|
|||
import com.swifttech.remit.jmecustomer.R; |
|||
|
|||
import butterknife.BindView; |
|||
import butterknife.ButterKnife; |
|||
|
|||
public class EmailNotVerifiedView extends NotificaitonBaseView { |
|||
|
|||
@BindView(R.id.kftc_renew_title) |
|||
TextView kftc_renew_title; |
|||
|
|||
@BindView(R.id.kftc_renew_text) |
|||
TextView kftc_renew_text; |
|||
|
|||
@BindView(R.id.kftc_renew_image) |
|||
ImageView kftc_renew_image; |
|||
private ObjectAnimator anim; |
|||
|
|||
public EmailNotVerifiedView(Context context) { |
|||
super(context); |
|||
init(context); |
|||
} |
|||
|
|||
public EmailNotVerifiedView(Context context, AttributeSet attrs) { |
|||
super(context, attrs); |
|||
init(context); |
|||
} |
|||
|
|||
public EmailNotVerifiedView(Context context, AttributeSet attrs, int defStyleAttr) { |
|||
super(context, attrs, defStyleAttr); |
|||
init(context); |
|||
} |
|||
|
|||
@Override |
|||
public void animateNotification() { |
|||
if(anim==null||!anim.isRunning()) { |
|||
anim = ObjectAnimator.ofFloat(kftc_renew_image, View.ROTATION, 0,15,-15,9,-9,0); |
|||
anim.setStartDelay(300); |
|||
anim.setDuration(2000).setRepeatMode(ValueAnimator.RESTART); |
|||
anim.setRepeatCount(ValueAnimator.INFINITE); |
|||
anim.start(); |
|||
} |
|||
} |
|||
|
|||
private void init(Context context) |
|||
{ |
|||
View view= LayoutInflater.from(context).inflate(R.layout.notification_auto_debit_required, this, true); |
|||
ButterKnife.bind(view,this); |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
kftc_renew_title.setText(title); |
|||
} |
|||
|
|||
public void setMessage(String messageBody) { |
|||
kftc_renew_text.setText(messageBody); |
|||
|
|||
} |
|||
public void setImage(Drawable drawableResource){ |
|||
kftc_renew_image.setImageDrawable(drawableResource); |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue