You can use a DialogPreference and create your own layout for the input fields you require. DialogPreference is abstract so you'll need to create your own subclass of it, adding an implementation of onDialogClosed() to save the values from the dialog as Preferences. You can still reference your own class in a Preferences XML file by using the class as the XML tag. For example:
Android EditPeference
最新推荐文章于 2024-05-02 22:25:28 发布