Tentei colocando direto no código dessa forma
edtTeste1 = (EditText) this.findViewById(R.id.edtTeste1);
edtTeste1.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
edtTeste1.setSingleLine(true);
edtTeste1.setLines(1); // Linhas visiveis
edtTeste1.setHorizontallyScrolling(false);
edtTeste1.setImeOptions(EditorInfo.IME_ACTION_DONE);
Em sábado, 2 de março de 2013 16h28min47s UTC-3, Gink Labrev escreveu:
Pessoal,É msm dificil fazer algo tão simples. ?Um EditText igual ao do Whatsapp. Que tenha as propriedades:1. Seja multiline2. Comece com uma linha e chega no máximo a 53. Não tenha a tecla virtual de quebra de linha4. Tenha um "Done" ao invés da quebra de linha.Estou quebrando a cabeça com os últimos itens, sem sucesso.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário