java - Why can't I access package-private fields in the android.widget package? -
i'm attempting override android view class tweak functionality slightly. need modify field not have setter method. i've placed subclass in package called android.widget
. why can't access of package-private member fields? notice compiler says "cannot resolved," rather not being accessible. have how android.jar built?
those methods not part of android sdk , therefore unavailable directly sdk application. if building firmware, can access them directly. presumably, subclass @ them via reflection, though bear in mind such fields (or other non-sdk stuff) subject change in given android release.
Comments
Post a Comment