align AlertDialog buttons to center

前端 未结 9 1908
无人共我
无人共我 2020-12-06 09:09

I use this codes for Android (Java) programming:

public static MessageBoxResult showOk(
        Context context, String title, String message, String okMessa         


        
9条回答
  •  不知归路
    2020-12-06 09:51

    I presume you are using the AlertDialog from the Support library.

    If that's the case try replacing your import to android.app.AlertDialog.

提交回复
热议问题