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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -