Android 的 Toast 简单实用示例(用户提醒框),androidtoast,Toast toast
分享于 点击 34881 次 点评:121
Android 的 Toast 简单实用示例(用户提醒框),androidtoast,Toast toast
Toast toast = Toast.makeText(getApplicationContext(), "Hello, The Code Project!", Toast.LENGTH_LONG);toast.setGravity(Gravity.CENTER, 0, 0);LinearLayout toastView = (LinearLayout) toast.getView();ImageView imageCodeProject = new ImageView(getApplicationContext());imageCodeProject.setImageResource(R.drawable.codeprojectlogo);toastView.addView(imageCodeProject, 0);toast.show();//该片段来自于http://byrx.net
用户点评