Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1. //menu des boutons
  2.         final FloatingActionsMenu menuMultipleActions = (FloatingActionsMenu) findViewById(R.id.floatingButtonMenu_Achat);
  3.         final com.getbase.floatingactionbutton.FloatingActionButton buttonAddPersonne = (com.getbase.floatingactionbutton.FloatingActionButton) findViewById(R.id.b_add);
  4.         buttonAddPersonne.setOnClickListener(new View.OnClickListener() {
  5.             @Override
  6.             public void onClick(View v) {
  7.                 buttonAddPersonne.setTitle("Ajouter une personne");
  8.                 //buttonAdd.setVisibility(buttonAdd.getVisibility() == View.GONE ? View.VISIBLE : View.GONE);
  9.                 //Ajout d'une personne avec le fragemtn AddName
  10.                 // create a Dialog component
  11.                 final Dialog dialog = new Dialog(UnAchat.this);
  12.  
  13.                 //tell the Dialog to use the dialog.xml as it's layout description
  14.                 dialog.setTitle("Ajout d'un nom");
  15.                 dialog.setContentView(R.layout.fragment_add_name);
  16.                 dialog.show();
  17.             }
  18.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement