Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Can some one please explain to me why is (in this example) the button class related to android.view??
Should the inheritance be related to android.widget?
Please see attached image
In the packages they are separated but in the reference help, Button is child of android.view.View which is completely separated from android.widget package
I don't understand how this inheritance structure works
What, exactly, don't you understand about it? A class that extends some other class does not need to be in the same package (as you can see with android.widget.TextView extending android.view.View).
So when you say "android.view.View which is completely separated from android.widget package", nothing more is at work than the original package structure designer's ideas of what class should go into which package. That has no impact on the workings of those classes (and only a little impact on the overall class hierarchy). Those classes are not "separated" in any fundamental way.