Android Layout (Box Dialog)

Asked

Viewed 57 times

2

I’m trying to build a boxdialog for a listview. I’m having trouble finding an example to base and develop my solution.

Does anyone know any material I should know about? Here is a picture of the expected dialog (above "i")

inserir a descrição da imagem aqui

  • Do you only need to be displayed this? on click?

1 answer

1

Caio Sanchez Christino, I had the same doubt that you follow my solution:

Use the method setError() to assign this dialog, do not know how you want (click or auto), can the implementation is the same.

Example of how to implement:

   EditText agendado = (EditText)findViewById(R.id.agendado);
      if(resgate.isAgendado())
      {    
         agendado.setError("Agendado");
      }

This will generate a pop-up:

inserir a descrição da imagem aqui

You can take a look at Documentation for more information

  • I used setError. Very cool! Thanks for the tip but, I came up with another question. When running setError() the result is a picture (oval with exclamation) of "warning". Should I set something up to show the box? Some layout or parameter?

  • How are you using it? how to click? if you can print it better @Caiosanchezchristino

  • I am using click. I am trying to implement in a listview and read a document about the need to use notifyDataSetChanged.... Do you know if there is a need?

  • only the exclamation image appears, as in this figure (http://i.stack.Imgur.com/zXCJC.png)

  • I’m using the so SE app, when I’m on a computer I edit my answer.

  • @Caiosanchezchristino, are you still in trouble? I forgot about you^!

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.