This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Jeff Verdegan
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!