Accessing widget
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Accessing widget

on

  • 249 views

 

Statistics

Views

Total Views
249
Views on SlideShare
237
Embed Views
12

Actions

Likes
0
Downloads
1
Comments
0

1 Embed 12

http://duraisy2k.wordpress.com 12

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Accessing widget Presentation Transcript

  • 1. Accessing Widget By Durai. Sduraisy2k@gmail.com
  • 2. XML File
  • 3. Generated File
  • 4. JAVA File● Map a Widget in Java: Class ob=(Class)findViewById(id name in xml); ex: Button btn=(Button)findViewById(R.id.btn);● Toast: Notify some information to User Syntax: Toast.makeText(Context(), Text, duration).show(); Context() --> current class Text --> Message to display Duration --> duration to display LENGTH_LONG,LENGTH_SHORT
  • 5. JAVA File
  • 6. Output
  • 7. Create a EditText
  • 8. Set data in EditText
  • 9. Output