Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Um EditText igual ao do Whatsapp

Iv@n

Fiz o xml equivalente:

    <EditText
        android:id="@+id/editText1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:ems="10"
        android:imeOptions="actionDone"
           android:inputType="text|textCapSentences"
           android:maxLines="5"
           android:lines="1"
           android:scrollHorizontally="false"
  android:singleLine="true" >

E nada. Continua rolando horizontalmente.
Este código funcionou em sua app ?


Em 5 de março de 2013 15:35, Iv@n JAVA <x.surian.x@gmail.com> escreveu:
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 multiline
2. Comece com uma linha e chega no máximo a 5
3. Não tenha a tecla virtual de quebra de linha
4. 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.
 
 

--
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.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário