textStyle = new LabelStyle();
textStyle.font = font;
textStyle.fontColor=Color.GREEN;
EnterTextCasheir= new Label("",textStyle);
EnterTextCasheir.setBounds(AssetsHelper.convertWidth(158),
AssetsHelper.convertHeight(162),
AssetsHelper.convertWidth(180),
AssetsHelper.convertHeight(55));
EnterTextCasheir.setWrap(true);
EnterTextCasheir.setFontScale(1f, 1.5f);
EnterTextCasheir.setSize(CashierCounterEnterBoxZoomImage.getWidth(),
CashierCounterEnterBoxZoomImage.getHeight());
table4.addActor(EnterTextCasheir);
EnterTextCasheir.addListener(new InputListener() {
private boolean EnterTextCasheirBol;
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
if(!EnterTextCasheirBol)
{
EnterTextCasheirBol = true;
Gdx.input.getTextInput(new TextInputListener() {
private String CasheirBoxStg;
@Override
public void input (String text) {
EnterTextCasheirBol = false;
EnterTextCasheir.setText(text);
CasheirBoxStg = (String) text;
}
}
...
}
}
}
Its my brief code;I am not able to display the text into single line ;its coming in 2 lines can anyone help me to resolve.Thank you