Browse Source

Generic text listing dialog ui fixes

master
Preyea Regmi 5 years ago
parent
commit
043f3c474d
  1. 4
      app/src/main/java/com/gmeremit/online/gmeremittance_native/kycV3/view/personal/CustomerDetailFragment.java
  2. 9
      app/src/main/res/layout/dialog_generic_text_listing_layout.xml
  3. 4
      app/src/main/res/layout/generic_image_with_text_listing_dialog_item_layout.xml

4
app/src/main/java/com/gmeremit/online/gmeremittance_native/kycV3/view/personal/CustomerDetailFragment.java

@ -1083,6 +1083,7 @@ public class CustomerDetailFragment extends BaseFragment implements KYCV3Present
if (genderSelectDialog == null) if (genderSelectDialog == null)
genderSelectDialog = new GenericTextListingDialog<>(); genderSelectDialog = new GenericTextListingDialog<>();
genderSelectDialog.setData(ViewModelProviders.of(getActivity()).get(KYCV3ViewModel.class).getAvailableGenderList()); genderSelectDialog.setData(ViewModelProviders.of(getActivity()).get(KYCV3ViewModel.class).getAvailableGenderList());
genderSelectDialog.disableSearch(true);
genderSelectDialog.setListener(selectedGender -> genderSelectDialog.setListener(selectedGender ->
{ {
ed_gender.setText(selectedGender.toString()); ed_gender.setText(selectedGender.toString());
@ -1092,7 +1093,6 @@ public class CustomerDetailFragment extends BaseFragment implements KYCV3Present
}); });
genderSelectDialog.setHintAndTitle(getString(R.string.select_gender_text), getString(R.string.select_gender_text), getString(R.string.no_gender_found_text)); genderSelectDialog.setHintAndTitle(getString(R.string.select_gender_text), getString(R.string.select_gender_text), getString(R.string.no_gender_found_text));
genderSelectDialog.disableSearch(true);
if (!genderSelectDialog.isAdded()) if (!genderSelectDialog.isAdded())
genderSelectDialog.show(getActivity().getSupportFragmentManager(), "GENDERCHOOSER"); genderSelectDialog.show(getActivity().getSupportFragmentManager(), "GENDERCHOOSER");
} }
@ -1126,7 +1126,7 @@ public class CustomerDetailFragment extends BaseFragment implements KYCV3Present
idTypeSelectionDialog.setData(ViewModelProviders.of(getActivity()).get(KYCV3ViewModel.class).getAvailableIdTypeList()); idTypeSelectionDialog.setData(ViewModelProviders.of(getActivity()).get(KYCV3ViewModel.class).getAvailableIdTypeList());
idTypeSelectionDialog.disableSearch(true);
idTypeSelectionDialog.setListener(selectedIDType -> idTypeSelectionDialog.setListener(selectedIDType ->
{ {
idTypeSelectionDialog.dismiss(); idTypeSelectionDialog.dismiss();

9
app/src/main/res/layout/dialog_generic_text_listing_layout.xml

@ -79,15 +79,14 @@
</LinearLayout> </LinearLayout>
<FrameLayout <FrameLayout
android:id="@+id/rvContainer"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1"> android:layout_weight="1">
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/textListRv" android:id="@+id/textListRv"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:orientation="vertical" android:orientation="vertical"
android:minHeight="@dimen/_400sdp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent" />
<com.gmeremit.online.gmeremittance_native.customwidgets.GmeEditText <com.gmeremit.online.gmeremittance_native.customwidgets.GmeEditText
@ -95,11 +94,11 @@
android:id="@+id/noDataFoundTextView" android:id="@+id/noDataFoundTextView"
android:visibility="invisible" android:visibility="invisible"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:background="@null" android:background="@null"
android:enabled="false" android:enabled="false"
android:gravity="center_horizontal|top"
android:gravity="center"
tools:hint="Nothing found" tools:hint="Nothing found"
android:imeActionLabel="Done" android:imeActionLabel="Done"
android:imeOptions="actionDone" android:imeOptions="actionDone"

4
app/src/main/res/layout/generic_image_with_text_listing_dialog_item_layout.xml

@ -7,8 +7,8 @@
<ImageView <ImageView
android:id="@+id/imageView" android:id="@+id/imageView"
android:layout_width="@dimen/_35sdp"
android:layout_height="@dimen/_35sdp"
android:layout_width="@dimen/_40sdp"
android:layout_height="@dimen/_40sdp"
android:layout_marginStart="@dimen/_20sdp" android:layout_marginStart="@dimen/_20sdp"
android:layout_marginTop="@dimen/_6sdp" android:layout_marginTop="@dimen/_6sdp"
android:layout_marginBottom="@dimen/_6sdp" android:layout_marginBottom="@dimen/_6sdp"

Loading…
Cancel
Save