Browse Source

add rewards page

new_design
Mukesh Dhungana 2 years ago
parent
commit
c32051b8f1
  1. 5
      app/src/main/AndroidManifest.xml
  2. 44
      app/src/main/java/com/remit/jmecustomer/features/rewards/view/RewardActivity.java
  3. 11
      app/src/main/java/com/remit/jmecustomer/features/userprofile/view/ProfileActivity.java
  4. 28
      app/src/main/res/layout/activity_profile.xml

5
app/src/main/AndroidManifest.xml

@ -288,6 +288,11 @@
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden" />
<activity
android:name="com.remit.jmecustomer.features.rewards.view.RewardActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden" />
<service
android:name="com.remit.jmecustomer.services.JMEFcmMessagingService"

44
app/src/main/java/com/remit/jmecustomer/features/rewards/view/RewardActivity.java

@ -0,0 +1,44 @@
package com.remit.jmecustomer.features.rewards.view;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.viewpager.widget.ViewPager;
import com.remit.jmecustomer.R;
import com.remit.jmecustomer.base.BaseActivity;
import com.remit.jmecustomer.common.customwidgets.GenericViewPagerAdapter;
import butterknife.BindView;
import butterknife.ButterKnife;
public class RewardActivity extends BaseActivity {
@BindView(R.id.iv_back)
View iv_back;
@BindView(R.id.toolbar_title)
TextView toolbarTitle;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_reward_points);
ButterKnife.bind(this);
init();
performDefaultAction(savedInstanceState);
}
private void init() {
toolbarTitle.setText(getResources().getString(R.string.bankDeposit_text));
}
private void performDefaultAction(Bundle savedInstanceState) {
}
}

11
app/src/main/java/com/remit/jmecustomer/features/userprofile/view/ProfileActivity.java

@ -1,7 +1,9 @@
package com.remit.jmecustomer.features.userprofile.view;
import android.content.Intent;
import android.os.Bundle;
import com.remit.jmecustomer.features.rewards.view.RewardActivity;
import com.remit.jmecustomer.features.userprofile.model.UserProfile;
import com.remit.jmecustomer.features.userprofile.presenter.UserProfilePresenterInterface;
import com.remit.jmecustomer.features.userprofile.presenter.UserProfilePresenterV2;
@ -58,6 +60,9 @@ public class ProfileActivity extends BaseActivity implements UserProfilePresente
@BindView(R.id.tv_referral_value)
JmeTextView tv_referral_value;
@BindView(R.id.tv_invite)
JmeTextView tv_invite;
private UserProfilePresenterV2 viewModel;
@ -75,11 +80,15 @@ public class ProfileActivity extends BaseActivity implements UserProfilePresente
}
@OnClick({R.id.iv_back, R.id.iv_uploadImage, R.id.iv_edit_profile})
@OnClick({R.id.iv_back, R.id.iv_uploadImage, R.id.iv_edit_profile,R.id.tv_invite})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.iv_back:
finish();
break;
case R.id.tv_invite:
startActivity(new Intent(getApplicationContext(), RewardActivity.class));
break;
}
}

28
app/src/main/res/layout/activity_profile.xml

@ -288,6 +288,34 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/ic_rectangle_white_extra_corners"
android:paddingBottom="10dp"
>
<com.remit.jmecustomer.common.customwidgets.JmeTextView
android:id="@+id/tv_invite"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="13dp"
android:gravity="start"
android:padding="2dp"
android:text="Invite"
android:textColor="@color/black"
android:textSize="@dimen/text_small"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>

Loading…
Cancel
Save