Skip to content

Instantly share code, notes, and snippets.

@tenadavila
Created June 22, 2013 10:42
Show Gist options
  • Save tenadavila/5840401 to your computer and use it in GitHub Desktop.
Save tenadavila/5840401 to your computer and use it in GitHub Desktop.
public void menu(View v) {
LayoutInflater inflater = this.getLayoutInflater();
View view = inflater.inflate(R.layout.menu, null);
Dialog mDialog = new Dialog(this,
android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
mDialog.setContentView(view);
mDialog.getWindow().setLayout(500, 600);
mDialog.show();
TextView tv = (TextView) mDialog.getWindow().findViewById(R.id.dificultad);
tv.setTypeface(font);
TextView tv1 = (TextView) mDialog.getWindow().findViewById(R.id.menuopcion2);
tv1.setTypeface(font);
TextView tv2 = (TextView) mDialog.getWindow().findViewById(R.id.menuopcion3);
tv2.setTypeface(font);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment