开发者

how to set position of icon in the alert dialog

开发者 https://www.devze.com 2023-01-18 13:19 出处:网络
How to set position of icon in the alert dialog? below is the code I am using: AlertDialog.Builder builder = new AlertDialog.Builder(context);

How to set position of icon in the alert dialog? below is the code I am using:

AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.开发者_运维知识库setIcon(int id);


There's no a method to do so. What you will have to do is setting a custom view to your dialog. Here it's explained: Creating a Custom Dialog

0

精彩评论

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