How to create a Custom Dialog box in android?

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

I want to create a custom dialog box like below

\"enter

I have tried the foll

22条回答
  •  清歌不尽
    2020-11-21 07:53

    I like to use tcAron library. (Download here: https://github.com/triocoder/tcAron)

    1. import class:

      import com.triocoder.tcaron.tcaronlibrary.tcAronDialogs;

    2. write this:

      tcAronDialogs.showFancyAlert(MainActivity.this, false, "Text", "Close", "ic_hub_white", 0xFFF44336);

    3. check the documentation:
      https://github.com/triocoder/tcAron/wiki/showFancyAlert

提交回复
热议问题