From 5503f20d374b9b6cebb2b09ae92b925b38b599ae Mon Sep 17 00:00:00 2001 From: PatelVatsalB21 Date: Tue, 26 Jan 2021 13:18:56 +0530 Subject: [PATCH] fix #1730: Text Error in FormToggleButton fixed --- .../com/mifos/mifosxdroid/formwidgets/FormToggleButton.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/formwidgets/FormToggleButton.java b/mifosng-android/src/main/java/com/mifos/mifosxdroid/formwidgets/FormToggleButton.java index 994190eaeab..0836bd7890d 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/formwidgets/FormToggleButton.java +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/formwidgets/FormToggleButton.java @@ -36,12 +36,10 @@ public FormToggleButton(Context context, String name) { switchButton = new SwitchCompat(context); switchButton.setLayoutParams(weightedLayoutParams); + switchButton.setPadding(0, 0, 0, 20); switchButton.setGravity(Gravity.CENTER_HORIZONTAL); switchButton.setSwitchMinWidth(50); - switchButton.setShowText(true); switchButton.setChecked(false); - switchButton.setTextOn("True"); - switchButton.setTextOff("False"); switchButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean b) {