Browse Source

kyc an ui changes

new_design
Mohan Shiwakoti 1 year ago
parent
commit
307675d6db
  1. 3
      app/src/main/java/com/remit/jmecustomer/features/homeV3/view/HomeActivityV3.kt
  2. 12
      app/src/main/java/com/remit/jmecustomer/features/userprofile/view/ProfileFragment.kt
  3. BIN
      app/src/main/res/drawable-xxhdpi/ic_logo.png
  4. 2
      app/src/main/res/drawable/drawable_red_right_radius.xml
  5. 13
      app/src/main/res/layout/fragment_home_new.xml
  6. 35
      app/src/main/res/layout/fragment_profile.xml

3
app/src/main/java/com/remit/jmecustomer/features/homeV3/view/HomeActivityV3.kt

@ -150,14 +150,11 @@ class HomeActivityV3 : BaseActivity(), HomeParentViewContractV2,
val tab3: TabLayout.Tab = val tab3: TabLayout.Tab =
binding.tabLayout.newTab().setIcon(R.drawable.profile_unselected).setText("Account") binding.tabLayout.newTab().setIcon(R.drawable.profile_unselected).setText("Account")
val tab4: TabLayout.Tab =
binding.tabLayout.newTab().setIcon(R.drawable.ic_msg).setText("Help")
// Add tabs to the TabLayout // Add tabs to the TabLayout
binding.tabLayout.addTab(tab1) binding.tabLayout.addTab(tab1)
binding.tabLayout.addTab(tab2) binding.tabLayout.addTab(tab2)
binding.tabLayout.addTab(tab3) binding.tabLayout.addTab(tab3)
binding.tabLayout.addTab(tab4)
if (isTransactionComplete) { if (isTransactionComplete) {
resetTabs() resetTabs()

12
app/src/main/java/com/remit/jmecustomer/features/userprofile/view/ProfileFragment.kt

@ -27,6 +27,7 @@ import com.remit.jmecustomer.R
import com.remit.jmecustomer.RemitApplication import com.remit.jmecustomer.RemitApplication
import com.remit.jmecustomer.base.BaseFragment import com.remit.jmecustomer.base.BaseFragment
import com.remit.jmecustomer.base.PrefKeys import com.remit.jmecustomer.base.PrefKeys
import com.remit.jmecustomer.common.customwidgets.CustomAlertDialog
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog.GenericDialogPromptListener import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog.GenericDialogPromptListener
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialogSingleButton import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialogSingleButton
@ -146,6 +147,7 @@ class ProfileFragment : BaseFragment(), View.OnClickListener,
binding.tvTermAndCondition.setOnClickListener(this) binding.tvTermAndCondition.setOnClickListener(this)
binding.tvFraudGuarantee.setOnClickListener(this) binding.tvFraudGuarantee.setOnClickListener(this)
binding.llAccountStatement.setOnClickListener(this) binding.llAccountStatement.setOnClickListener(this)
binding.linUploadSlip.setOnClickListener(this)
viewModel!!.subscribeToUserProfileInfoFetchEvent().observe( viewModel!!.subscribeToUserProfileInfoFetchEvent().observe(
this this
) { body: UserProfile? -> ) { body: UserProfile? ->
@ -293,6 +295,16 @@ class ProfileFragment : BaseFragment(), View.OnClickListener,
R.id.ll_account_statement -> { R.id.ll_account_statement -> {
startActivity(Intent(requireActivity(), WalletStatementV2Activity::class.java)) startActivity(Intent(requireActivity(), WalletStatementV2Activity::class.java))
} }
R.id.lin_upload_slip -> {
val unverifiedMessage: String? = homeViewModel?.checkIfUserVerified()
if (unverifiedMessage == null) startActivity(
Intent(
requireContext(),
DepositSlipActivity::class.java
)
) else showPopUpMessage(unverifiedMessage, CustomAlertDialog.AlertType.ALERT, null)
}
} }
} }

BIN
app/src/main/res/drawable-xxhdpi/ic_logo.png

After

Width: 2550  |  Height: 896  |  Size: 76 KiB

2
app/src/main/res/drawable/drawable_red_right_radius.xml

@ -2,7 +2,7 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item> <item>
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/red_membership_color" />
<solid android:color="@color/light_blue" />
<corners <corners
android:bottomLeftRadius="0dp" android:bottomLeftRadius="0dp"
android:bottomRightRadius="@dimen/_10ssp" android:bottomRightRadius="@dimen/_10ssp"

13
app/src/main/res/layout/fragment_home_new.xml

@ -40,7 +40,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/card_bottom_rounded_white" android:background="@drawable/card_bottom_rounded_white"
android:elevation="@dimen/_3sdp" android:elevation="@dimen/_3sdp"
android:paddingHorizontal="@dimen/_20sdp"
android:paddingStart="@dimen/_20sdp"
android:paddingVertical="@dimen/_15sdp" android:paddingVertical="@dimen/_15sdp"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
@ -97,6 +97,15 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_avl_balance" /> app:layout_constraintTop_toBottomOf="@id/tv_avl_balance" />
<ImageView
android:src="@drawable/ic_logo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="@dimen/_130sdp"
android:layout_height="@dimen/_80sdp"/>
<LinearLayout <LinearLayout
android:id="@+id/lin_upload_slip" android:id="@+id/lin_upload_slip"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -265,7 +274,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="@dimen/_10sdp" android:layout_marginRight="@dimen/_10sdp"
android:text="JPY" android:text="JPY"
android:textColor="@color/black_opacity_87"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintEnd_toStartOf="@+id/iv_drop" app:layout_constraintEnd_toStartOf="@+id/iv_drop"

35
app/src/main/res/layout/fragment_profile.xml

@ -142,10 +142,43 @@
android:orientation="vertical"> android:orientation="vertical">
<LinearLayout
android:id="@+id/lin_upload_slip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_10sdp"
android:background="@drawable/green_rounded_background"
android:gravity="center"
android:layout_gravity="center"
android:paddingLeft="@dimen/_20sdp"
android:paddingTop="@dimen/_8sdp"
android:paddingRight="@dimen/_20sdp"
android:paddingBottom="@dimen/_8sdp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_acc_no">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_upload_slip" />
<TextView
style="@style/TextStyle.VolteSemiBold12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/_4sdp"
android:text="@string/upload_slip_dashboard_text"
android:textColor="@color/white" />
</LinearLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/_6sdp" android:layout_height="@dimen/_6sdp"
android:layout_marginTop="@dimen/_20sdp"
android:layout_marginTop="@dimen/_10sdp"
android:background="#F5F5F5" android:background="#F5F5F5"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

Loading…
Cancel
Save