From a87903198d6734ab3e5e988e6956b282f0a49030 Mon Sep 17 00:00:00 2001 From: Danish Jamal Date: Thu, 19 Nov 2020 17:02:13 +0530 Subject: [PATCH] ui changes in client_details fragment. --- .../clientcharge/ClientChargePresenter.kt | 2 +- .../NewIndividualCollectionSheetPresenter.kt | 6 +- ...dividualCollectionSheetDetailsPresenter.kt | 2 +- .../CreateNewClientPresenter.kt | 2 +- .../LoanAccountApprovalPresenter.kt | 2 +- .../online/loancharge/LoanChargePresenter.kt | 2 +- .../main/res/drawable/table_row_round_bg.xml | 7 ++ .../res/layout/fragment_client_details.xml | 80 ++++++++++++------- .../layout/view_account_accordion_section.xml | 13 ++- .../src/main/res/values-ca/strings.xml | 3 + .../src/main/res/values-en/strings.xml | 1 + .../src/main/res/values-es/strings.xml | 3 + .../src/main/res/values-fr/strings.xml | 2 + .../src/main/res/values-hi/strings.xml | 1 + .../src/main/res/values-kn/strings.xml | 3 + .../src/main/res/values-sw/strings.xml | 1 + .../src/main/res/values-zh/strings.xml | 1 + .../src/main/res/values/strings.xml | 20 ++--- .../src/main/res/values/styles_linear.xml | 1 + .../src/main/res/values/styles_table.xml | 4 +- .../src/main/res/values/styles_text.xml | 10 ++- 21 files changed, 112 insertions(+), 54 deletions(-) create mode 100644 mifosng-android/src/main/res/drawable/table_row_round_bg.xml mode change 100755 => 100644 mifosng-android/src/main/res/layout/fragment_client_details.xml diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/clientcharge/ClientChargePresenter.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/clientcharge/ClientChargePresenter.kt index b54816cc757..728d403e28a 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/clientcharge/ClientChargePresenter.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/clientcharge/ClientChargePresenter.kt @@ -42,7 +42,7 @@ class ClientChargePresenter @Inject constructor(private val mDataManagerCharge: mvpView!!.showProgressbar(false) try { if (e is HttpException) { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showFetchingErrorCharges(MFErrorParser .parseError(errorMessage) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividual/NewIndividualCollectionSheetPresenter.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividual/NewIndividualCollectionSheetPresenter.kt index f852c6181b9..f0a231f5467 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividual/NewIndividualCollectionSheetPresenter.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividual/NewIndividualCollectionSheetPresenter.kt @@ -49,7 +49,7 @@ class NewIndividualCollectionSheetPresenter @Inject internal constructor(private mvpView!!.showProgressbar(false) if (e is HttpException) { try { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showError(MFErrorParser.parseError(errorMessage) .errors[0].defaultUserMessage) @@ -84,7 +84,7 @@ class NewIndividualCollectionSheetPresenter @Inject internal constructor(private mvpView!!.showProgressbar(false) try { if (e is HttpException) { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showError(MFErrorParser.parseError(errorMessage) .errors[0].defaultUserMessage) @@ -113,7 +113,7 @@ class NewIndividualCollectionSheetPresenter @Inject internal constructor(private mvpView!!.showProgressbar(false) try { if (e is HttpException) { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showError(MFErrorParser.parseError(errorMessage) .errors[0].defaultUserMessage) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividualdetails/IndividualCollectionSheetDetailsPresenter.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividualdetails/IndividualCollectionSheetDetailsPresenter.kt index 85c780e1da0..c9cc99d12d2 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividualdetails/IndividualCollectionSheetDetailsPresenter.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/collectionsheetindividualdetails/IndividualCollectionSheetDetailsPresenter.kt @@ -47,7 +47,7 @@ class IndividualCollectionSheetDetailsPresenter @Inject internal constructor(pri mvpView!!.showProgressbar(false) try { if (e is HttpException) { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showError(MFErrorParser.parseError(errorMessage) .errors[0].defaultUserMessage) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/createnewclient/CreateNewClientPresenter.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/createnewclient/CreateNewClientPresenter.kt index 0c76a334162..2d0ba4948f1 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/createnewclient/CreateNewClientPresenter.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/createnewclient/CreateNewClientPresenter.kt @@ -122,7 +122,7 @@ class CreateNewClientPresenter @Inject constructor(private val mDataManagerClien mvpView!!.showProgressbar(false) try { if (e is HttpException) { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showMessage(MFErrorParser.parseError(errorMessage) .errors[0].defaultUserMessage) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loanaccountapproval/LoanAccountApprovalPresenter.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loanaccountapproval/LoanAccountApprovalPresenter.kt index ab684fed430..4aa462d2301 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loanaccountapproval/LoanAccountApprovalPresenter.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loanaccountapproval/LoanAccountApprovalPresenter.kt @@ -40,7 +40,7 @@ class LoanAccountApprovalPresenter @Inject constructor(private val mDataManager: mvpView!!.showProgressbar(false) try { if (e is HttpException) { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showLoanApproveFailed( MFErrorParser.parseError(errorMessage) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loancharge/LoanChargePresenter.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loancharge/LoanChargePresenter.kt index 882ac482329..77a32e668cd 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loancharge/LoanChargePresenter.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/loancharge/LoanChargePresenter.kt @@ -39,7 +39,7 @@ class LoanChargePresenter @Inject constructor(private val mDataManager: DataMana mvpView!!.showProgressbar(false) try { if (e is HttpException) { - val errorMessage = e.response().errorBody() + val errorMessage = e.response().errorBody()!! .string() mvpView!!.showFetchingError(MFErrorParser .parseError(errorMessage) diff --git a/mifosng-android/src/main/res/drawable/table_row_round_bg.xml b/mifosng-android/src/main/res/drawable/table_row_round_bg.xml new file mode 100644 index 00000000000..c3923a0b734 --- /dev/null +++ b/mifosng-android/src/main/res/drawable/table_row_round_bg.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/mifosng-android/src/main/res/layout/fragment_client_details.xml b/mifosng-android/src/main/res/layout/fragment_client_details.xml old mode 100755 new mode 100644 index 036973b0fa7..7877d2b74f9 --- a/mifosng-android/src/main/res/layout/fragment_client_details.xml +++ b/mifosng-android/src/main/res/layout/fragment_client_details.xml @@ -1,8 +1,8 @@ - @@ -20,10 +20,12 @@ android:layout_marginTop="@dimen/marginItemsInSectionSmall" android:layout_gravity="center"> + + android:layout_gravity="center" + tools:src="@drawable/ic_launcher"/> - - - + + style="@style/TextView.Row.Value" + tools:text="000000325"/> + style="@style/TextView.Row.Value" + tools:text="ID-123"/> + style="@style/TextView.Row.Value" + tools:text="Nov 16, 2016"/> + style="@style/TextView.Row.Value" + tools:text="GROUP AD"/> + style="@style/TextView.Row.Value" + tools:text="1234567890"/> + style="@style/TextView.Row.Value" + tools:text="foodies"/> + + + + + + android:layout_height="wrap_content" /> + android:layout_height="wrap_content" /> + android:layout_height="wrap_content" /> @@ -188,12 +212,12 @@ android:visibility="gone" android:orientation="horizontal"> -