Toast
当用户按下 a 时,我必须显示a 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();