Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1562 UI improvements in client details page #1563

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions mifosng-android/src/main/res/drawable/table_row_round_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape= "rectangle">
<stroke android:width="1dp" android:color="@color/primary_dark"/>
<corners android:radius="2dp"/>
</shape>
80 changes: 52 additions & 28 deletions mifosng-android/src/main/res/layout/fragment_client_details.xml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:layout_marginStart="@dimen/default_padding"
android:layout_marginEnd="@dimen/default_padding"
android:id="@+id/rl_client">
Expand All @@ -20,27 +20,25 @@
android:layout_marginTop="@dimen/marginItemsInSectionSmall"
android:layout_gravity="center">


<com.mifos.mifosxdroid.views.CircularImageView
android:id="@+id/iv_clientImage"
style="@style/ClientImage"
android:layout_gravity="center"/>
android:layout_gravity="center"
tools:src="@drawable/ic_launcher"/>

<ProgressBar
android:id="@+id/pb_imageProgressBar"
style="@style/ProgressBar.Base"
android:layout_gravity="center"/>

</FrameLayout>

<TextView
android:id="@+id/tv_fullName"
style="@style/TextView.Client"
android:layout_marginBottom="@dimen/marginItemsInSectionSmall"
android:layout_marginTop="@dimen/marginItemsInSectionSmall"
android:layout_gravity="center"/>

</LinearLayout>

<TextView
android:id="@+id/tv_fullName"
style="@style/TextView.Client"
tools:text="Client Name" />

<TableLayout
android:id="@+id/tbl_clientDetails"
Expand All @@ -56,7 +54,8 @@

<TextView
android:id="@+id/tv_accountNumber"
style="@style/TextView.Row.Value"/>
style="@style/TextView.Row.Value"
tools:text="000000325"/>
</TableRow>

<TableRow
Expand All @@ -69,7 +68,8 @@

<TextView
android:id="@+id/tv_externalId"
style="@style/TextView.Row.Value"/>
style="@style/TextView.Row.Value"
tools:text="ID-123"/>
</TableRow>

<TableRow
Expand All @@ -82,7 +82,8 @@

<TextView
android:id="@+id/tv_activationDate"
style="@style/TextView.Row.Value"/>
style="@style/TextView.Row.Value"
tools:text="Nov 16, 2016"/>
</TableRow>

<TableRow
Expand All @@ -95,7 +96,8 @@

<TextView
android:id="@+id/tv_office"
style="@style/TextView.Row.Value"/>
style="@style/TextView.Row.Value"
tools:text="GROUP AD"/>
</TableRow>

<TableRow
Expand All @@ -108,7 +110,8 @@

<TextView
android:id="@+id/tv_mobile_no"
style="@style/TextView.Row.Value"/>
style="@style/TextView.Row.Value"
tools:text="1234567890"/>
</TableRow>

<TableRow
Expand All @@ -121,7 +124,8 @@

<TextView
android:id="@+id/tv_group"
style="@style/TextView.Row.Value"/>
style="@style/TextView.Row.Value"
tools:text="foodies"/>
</TableRow>

<TableRow
Expand Down Expand Up @@ -158,24 +162,44 @@

</TableLayout>

<LinearLayout style="@style/LinearLayout.Width"
android:layout_marginTop="22dp"
android:layout_marginBottom="12dp">
<TextView
android:id="@+id/tv_accountHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/accounts"
android:textStyle="bold"
/>
<View
android:id="@+id/line2"
android:layout_width="wrap_content"
android:layout_height="2dp"
android:background="@color/primary"
android:layout_gravity="center_vertical"
android:layout_marginLeft="6dp"
android:layout_marginStart="6dp"
android:layout_marginTop="2dp"/>
</LinearLayout>

<include
android:id="@+id/account_accordion_section_loans"
layout="@layout/view_account_accordion_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"/>
android:layout_height="wrap_content" />

<include
android:id="@+id/account_accordion_section_savings"
layout="@layout/view_account_accordion_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content" />

<include
android:id="@+id/account_accordion_section_recurring"
layout="@layout/view_account_accordion_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content" />

</LinearLayout>
</ScrollView>
Expand All @@ -188,12 +212,12 @@
android:visibility="gone"
android:orientation="horizontal">

<Button
android:id="@+id/btn_activate_client"
android:layout_width="match_parent"
android:layout_height="50dp"
android:text="@string/activate_client"
android:background="@color/accent" />
<Button
android:id="@+id/btn_activate_client"
android:layout_width="match_parent"
android:layout_height="50dp"
android:text="@string/activate_client"
android:background="@color/accent" />
</LinearLayout>

</RelativeLayout>
</RelativeLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp">
android:layout_marginTop="10dp"
android:paddingBottom="12dp">

<com.joanzapata.iconify.widget.IconTextView
android:id="@+id/tv_toggle_accounts_icon"
Expand All @@ -13,15 +14,19 @@
android:layout_margin="4dp"
android:text="{md-add-circle-outline}"
android:textColor="@color/secondary_text"
android:textSize="20sp" />
android:textSize="20sp"
android:layout_alignParentStart="true" />


<TextView
android:id="@+id/tv_toggle_accounts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/tv_toggle_accounts_icon"
android:text="@string/savingAccounts" />
android:text="@string/savingAccounts"
android:layout_toEndOf="@id/tv_toggle_accounts_icon"
android:layout_marginLeft="12dp"
android:layout_marginStart="12dp" />

<TextView
android:id="@+id/tv_count_accounts"
Expand All @@ -37,7 +42,7 @@
android:layout_width="wrap_content"
android:layout_height="1dp"
android:layout_below="@id/tv_toggle_accounts"
android:layout_marginTop="5dp"
android:layout_marginTop="8dp"
android:background="@color/primary" />

<ListView
Expand Down
3 changes: 3 additions & 0 deletions mifosng-android/src/main/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,7 @@
<string name="lang_changed">S\'ha canviat l\'idioma</string>
<string name="lang_change_description">Seleccioneu l\'idioma en què voleu veure l\'aplicació</string>
<string name="dark_mode">mode fosc</string>

<string name="accounts">Comptes</string>

</resources>
1 change: 1 addition & 0 deletions mifosng-android/src/main/res/values-en/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
<string name="product_name">Product Name</string>
<string name="valid">Valid</string>
<string name="surveyEmpty">This Survey is Empty</string>
<string name="accounts">Accounts</string>


</resources>
3 changes: 3 additions & 0 deletions mifosng-android/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,7 @@
<string name="lang_changed">Idioma cambiado</string>
<string name="lang_change_description">Seleccione el idioma en el que desea ver la aplicación</string>
<string name="dark_mode">modo oscuro</string>

<string name="accounts">cuenta</string>

</resources>
2 changes: 2 additions & 0 deletions mifosng-android/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -610,4 +610,6 @@
<string name="lang_change_description">Sélectionnez la langue dans laquelle vous souhaitez afficher l\'application</string>
<string name="dark_mode">mode sombre</string>

<string name="accounts">Compte</string>

</resources>
1 change: 1 addition & 0 deletions mifosng-android/src/main/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@
<string name="collectionsheet_submit_success">कलेक्शन शीट सफलतापूर्वक जमा कर दी गई</string>
<string name="individual_collection_sheet">व्यक्तिगत कलेक्शन शीट</string>
<string name="due_collection">कलेक्शन का देय</string>
<string name="accounts">खाता</string>

!-- About App -->
<string name="about_app">फील्ड ऑफिसर एप्लीकेशन एक एप्लीकेशन है बैंक स्टाफ फील्ड ऑफिसर के लिए विकसित किया गया
Expand Down
3 changes: 3 additions & 0 deletions mifosng-android/src/main/res/values-kn/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -593,4 +593,7 @@
<string name="lang_changed">ಭಾಷೆ ಬದಲಾಗಿದೆ</string>
<string name="lang_change_description">ನೀವು ಅಪ್ಲಿಕೇಶನ್ ವೀಕ್ಷಿಸಲು ಬಯಸುವ ಭಾಷೆಯನ್ನು ಆಯ್ಕೆಮಾಡಿ</string>
<string name="dark_mode">ಡಾರ್ಕ್ ಮೋಡ್</string>

<string name="accounts">ಖಾತೆ</string>

</resources>
1 change: 1 addition & 0 deletions mifosng-android/src/main/res/values-sw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@
<string name="failed_to_load_db_clients">Upakio wa wateja wa hifadhidata umefeli</string>
<string name="failed_to_load_db_groups">Upakio wa makundi ya hifadhidata umefeli</string>
<string name="browse">Vinjari</string>
<string name="accounts">akaunti</string>

<!-- Language -->
<string name="language">Lugha</string>
Expand Down
1 change: 1 addition & 0 deletions mifosng-android/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@
<string name="incorrect_passcode">密码错误</string>
<string name="incorrect_passcode_more_than_three">您已经输错三次密码了,请再次尝试</string>
<string name="error_passcode">密码应该是4位数</string>
<string name="accounts">帳戶</string>

<!-- Language -->
<string name="language">语</string>
Expand Down
20 changes: 8 additions & 12 deletions mifosng-android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@
<string name="something_went_wrong">Something went wrong</string>
<string name="entry">ENTRY</string>
<string name="network_issue">Network Issue</string>
<string name="accounts">Accounts</string>
<string name="dark_mode">Dark Mode</string>
<string name="ui">UI</string>
<string name="dark_mode_def_value">MODE_NIGHT_FOLLOW_SYSTEM</string>
Expand All @@ -844,13 +845,6 @@
<item>System Default</item>
</string-array>

<string-array name="dark_mode_values" translatable="false">
<item>light</item>
<item>dark</item>
<item>default</item>
</string-array>


<!-- About App -->
<string name="about_app">Field Officer Application is an application
developed for the Bank staff field officer to keep track of Clients,
Expand All @@ -868,13 +862,18 @@
<string name="about_license">License</string>
<string name="about_license_sub">Check Mozilla Public License 2.0</string>

<string-array name="dark_mode_values" translatable="false">
<item>light</item>
<item>dark</item>
<item>default</item>
</string-array>

<!-- Language -->
<string name="language">Language</string>
<string name="language_type" translatable="false">language_type</string>
<string name="lang_changed">Language Changed</string>
<string name="lang_change_description">Select the language in which you want to view the app</string>
<string name="mode_key">dark_mode</string>

<string-array name="language_option" translatable="false">
<item>Catalan</item>
<item>English</item>
Expand All @@ -885,7 +884,6 @@
<item>Chinese</item>
<item>Kannada</item>
</string-array>

<string-array name="languages_value" translatable="false">
<item>ca</item>
<item>en</item>
Expand All @@ -896,10 +894,8 @@
<item>zh</item>
<item>kn</item>
</string-array>


<string name="passcode">Passcode</string>
<string name="change_passcode">Change Passcode</string>
<string name="change_app_passcode">Change App Passcode</string>

</resources>
</resources>
1 change: 1 addition & 0 deletions mifosng-android/src/main/res/values/styles_linear.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:orientation">horizontal</item>
<item name="android:gravity">center_horizontal</item>
</style>

</resources>
4 changes: 3 additions & 1 deletion mifosng-android/src/main/res/values/styles_table.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
<style name="Table">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="background">@drawable/table_row_round_bg</item>
</style>


<style name="TableRow">
<item name="android:layout_margin">3dp</item>
<item name="android:layout_marginTop">8dp</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:background">@drawable/table_row_round_bg</item>
</style>

</resources>
Loading