Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

can't add preference directly to root of prefs screen  RSS feed

 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a class that extends DialogPreference, and up until now, it's been living in a category under the main prefs screen. Now I want to bring it to the top level prefs screen. However, it's not showing up there.




When I call root.addPreference(buldDlg) isntead of syncCategory.addPreference(bulkDlg),
to get that setting to show up at the top level prefs screen, it doesn't work. The setting doesn't show up.

Some of the Android docs seemed a bit ambiguous, to me, even contradictory, but I THINK it should be possible
to do this. Am I wrong there? Or is there some special setup we have to do for the prefs screen or the Preference
itself in order to support this?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind. I'm an idiot. It works just fine.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!