开发者

DIalogPreference Problem

开发者 https://www.devze.com 2023-01-25 07:59 出处:网络
I am using preferences, and this snippet of XML always causes my application to stop unexpectly when I hit a menu settings button which is supposed to display a list of preferences. I can use CheckBox

I am using preferences, and this snippet of XML always causes my application to stop unexpectly when I hit a menu settings button which is supposed to display a list of preferences. I can use CheckBoxPreference and ListPreference successfully but I cannot use DialogPreference. I cannot seem to find an example XML snippet anywhere.

I nee开发者_StackOverflow中文版d this dialog to collect a phone number in a string.


I should have been using EditTextPreference which extends DialogPreference. This works.

0

精彩评论

暂无评论...
验证码 换一张
取 消