android - Why return false in Java? -


i'm writing android app uses adapterview. there multiple calls isinfiltermode() in adapterview class 1 line function returns false. can't override function can't life of me figure out why function exists if returns false. description says returns true if it's in filter mode. here definition of isinfiltermode():

 /**  * indicates whether view in filter mode. filter mode can instance  * enabled user when typing on keyboard.  *  * @return true if view in filter mode, false otherwise.  */ boolean isinfiltermode() {     return false; } 

i relatively new java perhaps i'm missing typical java source code here? there other code obfuscated me?

first, lack of visibility modifier referred package-private. in between protected , private on visibility scale- other classes within same package can override package-private methods. see controlling access members of class more information.

the android framework uses often- allows framework override methods without allowing end users (android developers) same , potentially interfere how framework operates.

in case, default adapterviews not support filter mode @ all.

some adapterview subclasses support it. example, abslistview , it's descendants do. in case of abslistview, method returns value of internal property tracks whether or not list in filter mode.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -