Skip to content

Instantly share code, notes, and snippets.

@jobinjj
Created December 24, 2019 06:26
Show Gist options
  • Save jobinjj/acfc31477984ccd6a08c46b6c90973b5 to your computer and use it in GitHub Desktop.
Save jobinjj/acfc31477984ccd6a08c46b6c90973b5 to your computer and use it in GitHub Desktop.
toast
public class MainActivity extends AppCompatActivity {
private Button btnSimpleToast,btnPositionedToast,btnCustomToast;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btnSimpleToast = findViewById(R.id.btn_simple_toast);
btnPositionedToast = findViewById(R.id.btn_positioned_toast);
btnCustomToast = findViewById(R.id.btn_custom_toast);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment