当前位置: 动力学知识库 > 问答 > 编程问答 >

Error in source code of SlidingDrawer in Android

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: