I want to create a new class to customize dialogpreference.Though I try to many methods,they all didn't work. And I find a way to use the layout prepared as the layout of dialog in the dialogpreference on the site as follow: How to access widgets in a custom DialogPreference with a inflated layout?.
When I try to use the layout like this: setDialogLayoutResource(R.layout.address_dialog);
But it didn't work.Can you help me solve the problem?