Skip to content

Instantly share code, notes, and snippets.

@rainyear
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rainyear/a401f4791a5fe468d780 to your computer and use it in GitHub Desktop.
Save rainyear/a401f4791a5fe468d780 to your computer and use it in GitHub Desktop.
AlertDialog.Builder info = new AlertDialog.Builder(this);
info.setTitle(getResources().getString(R.string.about_matters_txt).toString());
info.setMessage(getResources().getString(R.string.about_matters_txt_cont).toString());
info.setNegativeButton("隱藏", null);
AlertDialog showedInfo = info.show();
//DisplayMetrics metrics = getResources().getDisplayMetrics();
//showedInfo.getWindow().setGravity(Gravity.CENTER);
//showedInfo.getWindow().setLayout(LayoutParams.FILL_PARENT,
//(int) (metrics.heightPixels * 0.7));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment