AbsListView and AbsSpinner are designed to be extended within the
framework. They could also be extended in 3rd party apps but we did
not expose all the necessary protected fields and methods on purpose.
We want to be very careful in how we expose such APIs so as to not get
stuff for future extensions and internal changes. Our current
recommendation is you simply copy/paste the code you need inside your
app.

On Mon, Jul 19, 2010 at 10:44 PM, Qberticus <[email protected]> wrote:
> I'm wondering if AbsListView and AbsSpinner were intended to be
> extended by non-framework classes. As they are currently implemented
> it is not possible to extend them do to necessary member fields being
> at the package level and also various abstract methods being at the
> package level. However, the documentation as it is currently written
> leads one to believe that it is possible to extend and use these
> classes to implement custom views.
>
> This dissonance between the code and the documentation is confusing.
> I'm going to assume that the main intention of these classes is
> specified in the code and conclude that you cannot and should not
> extend these classes.
>
> I know it's more than likely not possible for the 2.x tree but are
> there any future plans to overhaul these classes so that they will be
> properly extendable?
>
> -- Q
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to