I'm following that guide for implementing a custom preference. http://android-journey.blogspot.com/2010/01/for-almost-any-application-we-need-to.html. In the method
@Override
protected View onCreateView(ViewGroup parent){
...
}
The guide creates the elements programmatically and then returns the view. I'd like retrieve the layout from a xml file. But the call getLayoutInflater()
is not accesible there how can I retrieve a layout inflater for get the view stored in the file "progressbarpreference.xml"?
I have a static reference to the application Context available if needed
Thanks