Android Notes

Friday, 11 September 2015

Toast

Its very simple we just put these pieces of code wherever necessary

Toast t= Toast.makeText(MainActivity.this,"THis is some Toast",5000);
t.setGravity(Gravity.CENTER,0,0);
t.show();
Posted by Kishlay Raj at 19:40
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: toast

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Kishlay Raj
View my complete profile

Blog Archive

  • ►  2016 (4)
    • ►  April (1)
    • ►  February (2)
    • ►  January (1)
  • ▼  2015 (37)
    • ►  November (5)
    • ►  October (6)
    • ▼  September (26)
      • print a random number every second
      • custom button
      • Create a ListMenu for Android
      • onClick function
      • email
      • starting activity for result
      • setting up onclick method
      • xml design tips
      • imp notes
      • imp liks for projects
      • listview created by java
      • Splash Screen
      • Preference xml Activity and check Boxes
      • Shared Preference (for storage)
      • Using Camera
      • Toast
      • creating notification
      • my questions
      • Progress show
      • Create alert
      • long press menu (called context menu )
      • creating simple menu
      • Animation Xml
      • create a list
      • General concepts
      • General concepts

Total Pageviews

Simple theme. Powered by Blogger.