From 8b84be84eda44cc8cfda6387244d8eb9d7e6c920 Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 2 Apr 2018 17:50:43 +0300 Subject: [PATCH] change width of first two editTexts --- .../osmand/plus/mapmarkers/CoordinateInputDialogFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java index 0d8820cc6c..9a85d61cf0 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java @@ -775,6 +775,10 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm R.id.lon_first_input_et, R.id.lon_second_input_et, R.id.lon_third_input_et, R.id.point_name_et); for (EditText et : editTexts) { + if (et.getId() == R.id.lon_first_input_et) { + ((LinearLayout.LayoutParams) et.getLayoutParams()).weight = editTexts.get(0).getMaxSymbolsCount(); + et.requestLayout(); + } if (et.getId() != R.id.point_name_et) { et.addTextChangedListener(textWatcher); }else {