居中显示的Toast

	/**
	 * 居中显示的Toast
	 * @param content
	 */
	public void showToast(String content){
		Toast toast = Toast.makeText(getApplicationContext(), content, Toast.LENGTH_SHORT);
		toast.setGravity(Gravity.CENTER, 0, 0);
		toast.show();
	}

你可能感兴趣的:(Android,Code,Pieces)