change width of first two editTexts

This commit is contained in:
Chumva 2018-04-02 17:50:43 +03:00
parent 844328c6ef
commit 8b84be84ed

View file

@ -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 {