ロングトーストを作りたいのですが、よくわかりません。手伝って頂けますか?
public void onClick(View v) {
showing = new StringBuilder();
if (yes.isChecked()) {
diana.setEnabled(true);
jimmy.setEnabled(true);
dina.setEnabled(true);
jack.setEnabled(true); }
if(no.isChecked()==true) {
diana.setChecked(false);
jimmy.setChecked(false);
dina.setChecked(false);
jack.setChecked(false);
}
if(diana.isChecked())
{showing.append(" Diana ");}
if(jimmy.isChecked())
{showing.append(" Jimmy ");}
if(dina.isChecked())
{showing.append(" Dina ");}
if(jack.isChecked())
{showing.append(" jhftytuyhuggfdefrtgyh sdhcgwefguwiuh ");}
//**************************thats true??????????????*******************//
switch (v.getId()) {
case R.id.show:
NotificationManagerService.scheduleTimeoutLocked() {
if(yes.isChecked())
{Toast.makeText(MyClass.this, "You have selected " + str, Toast.LENGTH_LONG).show();}
long delay = immediate ? 0 : (r.duration == Toast.LENGTH_LONG ? LONG_DELAY : SHORT_DELAY);
private static final int LONG_DELAY = 3500; // 3.5 seconds
private static final int SHORT_DELAY = 2000; // 2 seconds
}
}
}