Snabackbar with 2 icons-Android

0

I have planned to set up a snackbar, which I would like 2 icons to be displayed, but following the following format:

 String + icon + String /n String + icon  + String

for what should be a title, the icon and a small description, in addition to a separation, to return to the same format and repeat it once again, is it possible to do the aforementioned?

edit:

Snackbar snackbar=  Snackbar.make(v1,"Valoracion: "+icono+"/n"+icono+"reporte: accidente"+"/n"+"descripcion: en la mitad de la via",12000)
                          .setActionTextColor(Color.YELLOW)
                          .setAction("Opciones", new View.OnClickListener() {
                                @Override
                                public void onClick(View v) {
                                    new AlertDialog.Builder(MainActivity.this)
                                            .setIcon(R.drawable.cerrar)
                                            .setTitle("Opciones")
                                            .setMessage("Te gustaria valorar o reportar la ruta?")
                                            .setCancelable(true)
                                            .setPositiveButton("Valorar", new DialogInterface.OnClickListener() {
                                                @Override
                                                public void onClick(DialogInterface dialog, int which) {
                                                    Intent i= new Intent(getApplicationContext(),Valoracion2.class);
                                                    i.putExtra("Nruta", marker.getTitle().toString());
                                                    startActivity(i);
                                                }
                                            })
                                            .setNeutralButton("Cancelar", null)
                                            .setNegativeButton("Reportar",new DialogInterface.OnClickListener(){
                                                @Override
                                                public void onClick(DialogInterface dialog,int which){

                                                }
                                            }).show();
                                }
                            });
                    View snackbarView = snackbar.getView();
                    TextView textView = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text);
                    textView.setMaxLines(5);
                    snackbar.show();
    
asked by zhet 10.12.2016 в 00:21
source

0 answers