Set width for the edit texts depending on the number of characters
This commit is contained in:
parent
0efcffb6d6
commit
dc91def00c
1 changed files with 2 additions and 0 deletions
|
@ -644,6 +644,8 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
EditTextEx et = (EditTextEx) mainView.findViewById(etId);
|
||||
et.setMaxSymbolsCount(symbols);
|
||||
et.setHint(createHint(symbols, lat ? 'x' : 'y'));
|
||||
((LinearLayout.LayoutParams) et.getLayoutParams()).weight = symbols;
|
||||
et.requestLayout();
|
||||
}
|
||||
|
||||
private String createHint(int symbolsCount, char symbol) {
|
||||
|
|
Loading…
Reference in a new issue