This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
This tiny ad is wafer thin:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!