当用户按下Toast
时,我必须显示Button
,但我想在screen
上再显示一下。
我该怎么做?
这是我Toast
的代码:
Toast.makeText(getApplicationContext(),
getString(R.string.emailregisternotentered),
Toast.LENGTH_SHORT).show();
解决:
Toast toast= Toast.makeText(getApplicationContext(),
getString(R.string.emailregisternotentered), Toast.LENGTH_SHORT);
//Toast.makeText(getApplicationContext(), getString(R.string.emailregisternotentered),
//Toast.LENGTH_SHORT).show();
toast.setGravity(Gravity.BOTTOM, 0, 0);
toast.show();