开发者

Android: add EditTextPreference as ListPreference item

开发者 https://www.devze.com 2023-02-13 07:48 出处:网络
Is there any way to add EditT开发者_如何学JAVAextPreference as ListPreference item? What I need is RadioGroup list of preferences (ListPreference is just for that), but the last entry would be somethi

Is there any way to add EditT开发者_如何学JAVAextPreference as ListPreference item? What I need is RadioGroup list of preferences (ListPreference is just for that), but the last entry would be something like "Custom" where I need something like EditTextPreference to allow user to add custom value to this preference.

Any ideas how to do it?

Thanx all!


You would have to create your own custom DialogPreference for this in Java. There is no way to accomplish it through the preference XML.

0

精彩评论

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

关注公众号