Eugene
Eugene

Reputation: 60244

I need to have a custom dialog in Preferences

I want to have a custom dialog (created using layout) in Preferences. What should I do to declare this custom dialog in my preferences?

Upvotes: 8

Views: 22181

Answers (1)

Christopher Souvey
Christopher Souvey

Reputation: 2910

Implement a DialogPreference for your custom layout and add that preference to your preference screen

Here is a good explanation of how to do this: Concise way of writing new DialogPreference classes?

Upvotes: 6

Related Questions