Skip to content

Commit

Permalink
restructured: xml files for regex fragment*.xml (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
avivijay19 authored Aug 9, 2022
1 parent 2361cf2 commit 3d8eaec
Show file tree
Hide file tree
Showing 45 changed files with 928 additions and 881 deletions.
15 changes: 7 additions & 8 deletions mifosng-android/src/main/res/layout/fragment_activate_client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,31 @@
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/LinearLayout.Base">
style="@style/LinearLayout.Base">

<TextView
android:id="@+id/tv_activate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:paddingTop="16dp"
android:paddingBottom="10dp"
android:text="@string/activation_date"
android:textSize="16sp"/>
android:textSize="16sp" />

<TextView
android:id="@+id/tv_activation_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="16dp"
android:background="@color/light_grey"
android:paddingTop="10dp"
android:textSize="20sp"
android:background="@color/light_grey" />
android:paddingBottom="16dp"
android:textSize="20sp" />

<Button
android:id="@+id/btn_activate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/activate"
/>
android:text="@string/activate" />

</LinearLayout>
10 changes: 5 additions & 5 deletions mifosng-android/src/main/res/layout/fragment_add_loan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@
<TextView
style="@style/TextView.Base.Weight"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="16dp"
android:layout_weight="0.5"
android:text="@string/loan_submission_date" />

<TextView
android:id="@+id/tv_submittedon_date"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="16dp"
android:layout_weight="0.5"
android:background="@color/gray_light"
android:textSize="20sp" />
Expand Down Expand Up @@ -294,14 +294,14 @@
android:id="@+id/sp_loan_term_periods"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="3dp"
android:layout_marginRight="3dp"
android:layout_weight="0.5"
android:background="@color/light_grey"
android:paddingTop="10dp"
android:spinnerMode="dropdown"
android:gravity="center_vertical"
android:layout_gravity="center_vertical"/>
android:paddingTop="10dp"
android:spinnerMode="dropdown" />
</LinearLayout>

<TextView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@
android:hint="@string/external_id"
android:imeOptions="actionNext"
android:inputType="text"
android:paddingBottom="16dp"
android:maxLines="1" />
android:maxLines="1"
android:paddingBottom="16dp" />
</com.google.android.material.textfield.TextInputLayout>

<TextView
android:id="@+id/tv_submittedon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:paddingTop="16dp"
android:paddingBottom="10dp"
android:text="@string/submittedon"
android:textSize="16sp" />

Expand All @@ -84,8 +84,8 @@
android:layout_height="wrap_content"
android:hint="@string/submission_headline"
android:imeOptions="actionNext"
android:paddingBottom="16dp"
android:paddingTop="10dp"
android:paddingBottom="16dp"
android:textSize="20sp" />

<com.google.android.material.textfield.TextInputLayout style="@style/TextInput.Base">
Expand All @@ -97,8 +97,8 @@
android:hint="@string/nominal"
android:imeOptions="actionNext"
android:inputType="number"
android:paddingBottom="16dp"
android:maxLines="1" />
android:maxLines="1"
android:paddingBottom="16dp" />
</com.google.android.material.textfield.TextInputLayout>

<TextView
Expand All @@ -113,8 +113,8 @@
android:id="@+id/sp_interest_calc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="16dp"
android:paddingTop="10dp"
android:paddingBottom="16dp"
android:textSize="20sp" />

<TextView
Expand All @@ -129,8 +129,8 @@
android:id="@+id/sp_interest_comp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="16dp"
android:paddingTop="10dp"
android:paddingBottom="16dp"
android:textSize="20sp" />

<TextView
Expand All @@ -145,8 +145,8 @@
android:id="@+id/sp_interest_p_period"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="16dp"
android:paddingTop="10dp"
android:paddingBottom="16dp"
android:textSize="20sp" />

<TextView
Expand All @@ -161,8 +161,8 @@
android:id="@+id/sp_days_in_year"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="16dp"
android:paddingTop="10dp"
android:paddingBottom="16dp"
android:textSize="20sp" />

<CheckBox
Expand All @@ -183,9 +183,9 @@
android:hint="@string/minbalance"
android:imeOptions="actionNext"
android:inputType="number"
android:paddingBottom="16dp"
android:maxLines="1"
android:visibility="gone"/>
android:paddingBottom="16dp"
android:visibility="gone" />
</com.google.android.material.textfield.TextInputLayout>

<CheckBox
Expand All @@ -206,9 +206,9 @@
android:hint="@string/maxoverdraft"
android:imeOptions="actionNext"
android:inputType="number"
android:paddingBottom="16dp"
android:maxLines="1"
android:visibility="gone"/>
android:paddingBottom="16dp"
android:visibility="gone" />
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout style="@style/TextInput.Base">
Expand All @@ -220,9 +220,9 @@
android:hint="@string/nominal_overdraft"
android:imeOptions="actionNext"
android:inputType="number"
android:paddingBottom="16dp"
android:maxLines="1"
android:visibility="gone"/>
android:paddingBottom="16dp"
android:visibility="gone" />
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout style="@style/TextInput.Base">
Expand All @@ -234,9 +234,9 @@
android:hint="@string/min_overdraft"
android:imeOptions="actionNext"
android:inputType="number"
android:paddingBottom="16dp"
android:maxLines="1"
android:visibility="gone"/>
android:paddingBottom="16dp"
android:visibility="gone" />

</com.google.android.material.textfield.TextInputLayout>

Expand Down
57 changes: 28 additions & 29 deletions mifosng-android/src/main/res/layout/fragment_center_details.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ This project is licensed under the open source MPL V2.
~ See https://github.com/openMF/android-client/blob/master/LICENSE.md
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rl_center"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/rl_center">
android:layout_height="match_parent">

<ScrollView style="@style/ScrollView.Base"
android:id="@+id/container">
<ScrollView
android:id="@+id/container"
style="@style/ScrollView.Base">

<TableLayout
android:id="@+id/tbl_centerDetails"
style="@style/Table">

<TextView
android:layout_height="wrap_content"
style="@style/TextView.Client"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
style="@style/TextView.Client"
android:textColor="@color/black"
android:text="@string/center_details"
android:paddingTop="@dimen/dimension_32_dp"
android:paddingBottom="@dimen/layout_padding_16dp"/>
android:paddingBottom="@dimen/layout_padding_16dp"
android:text="@string/center_details"
android:textColor="@color/black" />

<TableRow
android:id="@+id/row_activation_date"
Expand Down Expand Up @@ -61,8 +60,8 @@
android:text="@string/meeting_frequency" />

<TextView
style="@style/TextView.Row.Value"
android:id="@+id/tv_meeting_frequency" />
android:id="@+id/tv_meeting_frequency"
style="@style/TextView.Row.Value" />

</TableRow>

Expand All @@ -80,22 +79,22 @@
</TableRow>

<TextView
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:layout_height="2dp"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_marginTop="8dp"
android:background="@color/black"
android:layout_marginTop="8dp"/>
android:paddingTop="5dp"
android:paddingBottom="5dp" />

<TextView
android:layout_height="wrap_content"
style="@style/TextView.Client"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:paddingTop="@dimen/dimension_32_dp"
android:paddingBottom="@dimen/layout_padding_16dp"
style="@style/TextView.Client"
android:textColor="@color/black"
android:text="@string/summary_info"/>
android:text="@string/summary_info"
android:textColor="@color/black" />

<TableRow
android:id="@+id/row_active_clients"
Expand Down Expand Up @@ -132,8 +131,8 @@
android:text="@string/active_client_loans" />

<TextView
style="@style/TextView.Row.Value"
android:id="@+id/tv_active_client_loans" />
android:id="@+id/tv_active_client_loans"
style="@style/TextView.Row.Value" />

</TableRow>

Expand Down Expand Up @@ -198,15 +197,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:visibility="gone"
android:orientation="horizontal">
android:orientation="horizontal"
android:visibility="gone">

<Button
android:id="@+id/btn_activate_center"
android:layout_width="match_parent"
android:layout_height="50dp"
android:text="@string/activate_center"
android:background="@color/primary_dark" />
android:background="@color/primary_dark"
android:text="@string/activate_center" />
</LinearLayout>

</RelativeLayout>
30 changes: 15 additions & 15 deletions mifosng-android/src/main/res/layout/fragment_center_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
-->

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_width="match_parent"
android:layout_height="match_parent">

<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/lv_center"/>
android:id="@+id/lv_center"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/progress_center"/>
android:id="@+id/progress_center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:visibility="gone"
android:id="@+id/tv_empty_center"/>
android:id="@+id/tv_empty_center"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:visibility="gone" />
</FrameLayout>
Loading

0 comments on commit 3d8eaec

Please sign in to comment.