Santosh Bhandary
3 years ago
24 changed files with 250 additions and 105 deletions
-
2app/src/main/java/com/swifttech/remit/jmecustomer/features/home/gateway/HomeV2Gateway.java
-
27app/src/main/java/com/swifttech/remit/jmecustomer/features/home/model/UserInfoModelV2.java
-
25app/src/main/java/com/swifttech/remit/jmecustomer/features/home/presenter/HomeNotificationHandler.java
-
3app/src/main/java/com/swifttech/remit/jmecustomer/features/home/presenter/HomeV2PresenterInterface.java
-
11app/src/main/java/com/swifttech/remit/jmecustomer/features/home/presenter/HomeViewModel.java
-
6app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/HomeActivityV2.java
-
7app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/HomeFragmentV2.java
-
69app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/notifications/ChangePassNotificationView.java
-
10app/src/main/java/com/swifttech/remit/jmecustomer/features/home/view/notifications/HomeNotificiationViewFactory.java
-
2app/src/main/java/com/swifttech/remit/jmecustomer/features/notice/adapter/NoticeListingRVAdapter.java
-
4app/src/main/java/com/swifttech/remit/jmecustomer/features/notice/gateway/NoticeGateway.java
-
2app/src/main/java/com/swifttech/remit/jmecustomer/features/notice/view/NoticeListingFragment.java
-
2app/src/main/java/com/swifttech/remit/jmecustomer/features/userprofile/view/ProfileActivity.java
-
2app/src/main/java/com/swifttech/remit/jmecustomer/utils/https/API_URL.java
-
5app/src/main/java/com/swifttech/remit/jmecustomer/utils/https/ApiEndpoints.java
-
6app/src/main/res/drawable/ic_read.xml
-
2app/src/main/res/layout/activity_settings.xml
-
5app/src/main/res/layout/fragment_existing_customer_registration_submit.xml
-
26app/src/main/res/layout/notice_list_viewholder_v3.xml
-
2app/src/main/res/values-bn/strings.xml
-
2app/src/main/res/values-ja/strings.xml
-
2app/src/main/res/values-ne/strings.xml
-
2app/src/main/res/values-vi/strings.xml
-
3app/src/main/res/values/strings.xml
@ -0,0 +1,69 @@ |
|||||
|
package com.swifttech.remit.jmecustomer.features.home.view.notifications; |
||||
|
|
||||
|
import android.animation.ObjectAnimator; |
||||
|
import android.animation.ValueAnimator; |
||||
|
import android.content.Context; |
||||
|
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 ChangePassNotificationView 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 ChangePassNotificationView(Context context) { |
||||
|
super(context); |
||||
|
init(context); |
||||
|
} |
||||
|
|
||||
|
public ChangePassNotificationView(Context context, AttributeSet attrs) { |
||||
|
super(context, attrs); |
||||
|
init(context); |
||||
|
} |
||||
|
|
||||
|
public ChangePassNotificationView(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); |
||||
|
|
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue