Post Reply
Phone

SimpleDrawerListener vs no-op: memory efficient listener

23rd August 2014, 10:35 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
21 posts
Join Date:Joined: Feb 2012
I'm implementing a listener for DrawerLayout and found that SimpleDrawerListener class is more memory efficient than implementing your own via DrawerListener interface.
According to one of the books:
Quote:

"DrawerLayout.SimpleDrawerListener offers the default (no special options) implementation of each of the DrawerListener callback methods. Use this if you are just accessing the core functionality of the UI DrawerLayout class as it provides simpler, more memory efficient code."

For example, I need only 1 method from 4 available in DrawerListener.
How extending SimpleDrawerListener and overriding this particular method can be more memory efficient than implementing interface and leaving 3 methods empty? What can be more "memory efficient" than empty method?
Post Reply Subscribe to Thread

Tags
drawer, memory
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Java for Android App Development by ThreadRank