How to create a Custom Dialog box in android?

后端 未结 22 2831
囚心锁ツ
囚心锁ツ 2020-11-21 07:06

I want to create a custom dialog box like below

\"enter

I have tried the foll

22条回答
  •  闹比i
    闹比i (楼主)
    2020-11-21 07:33

    You can try this simple android dialog popup library to cut the cluttered dialog code. It is very simple to use on your activity. after that you can have this code in your activity to show dialog

    Pop.on(this).with().title(R.string.title).layout(R.layout.custom_pop).show();
    

    where R.layout.custom_pop is your custom layout the way you want to decorate your dialog.

提交回复
热议问题