[android-developers] Re: access parent's protected variable when extend a android class!

2009-03-11 Thread jusun...@gmail.com
thanks Jon Colverson. I can see also that mInLayout isn't actually protected, it has default. then. but when I build, build log tell me that I cannot access mInLayout from outside package /home/bobos26/work/devel/omap_test/packages/apps/Launcher/src/com/ android/launcher/WRGallery.java:27:

[android-developers] Re: access parent's protected variable when extend a android class!

2009-03-11 Thread Romain Guy
Because as you said, this field has the default access modifier, which restricts its use to the android.widget package. On Wed, Mar 11, 2009 at 6:39 PM, jusun...@gmail.com jusun...@gmail.com wrote: thanks Jon Colverson. I can see also that mInLayout isn't actually protected, it has default.

[android-developers] Re: access parent's protected variable when extend a android class!

2009-03-10 Thread Jon Colverson
On Mar 10, 8:48 am, jusun...@gmail.com jusun...@gmail.com wrote: the result log mean that I can't accessed the protected variable mInLayout from outside package. I think I can access a parent's protected variable when extending class in Object oriented programming theory. am I wrong? and is