问题描述:

From the source of SlidingDrawer, I found an interesting thing.

http://alvinalexander.com/java/jwarehouse/android/core/java/android/widget/SlidingDrawer.java.shtml

In line around 445, you may see there is a variable mBottom.

However, I haven't see where is the declaration and initialisation.

So the question is why it can be compiled.

网友答案:

mBottom is a protected field of View, since SlidingDrawer is child of View it has access to protected fields. so that's why it can be compiled

相关阅读:
Top