KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Will the performance be any better using onClick? If I use onClick I do not have to set an android:id (also avoid's a new View.OnClickListener ), does this improve performance at all? Or is the same effect of a findViewById occuring behind the scenes? This page gives both methods as an option but little guidance on any benifit. http://developer.android.com/reference/android/widget/Button.html Here's a blog post where they deem onClick as "easier" and an "improvement" for post 1.6 applications; http://android-developers.blogspot.com/2009/10/ui-framework-changes-in-android-16.html This new feature reduces both the amount of Java and XML you have to write, leaving you more time to concentrate on your application.
Tags (comma-separated)
Save Edits
Cancel