I attached an image of what the title is about, the title of dialog gets cut off and I dont understand why, I saw some alert dialog only works for 2 lines is this the issue?
private fun remindAcceptOrders(newStatus: OrderStatus, orderDetails: OrderDetails) {
val dialog = AlertDialog.Builder(requireContext(), R.style.AlertDialogTheme)
.setTitle(
getString(R.string.acceptMessage2)
)
.setPositiveButton(R.string.acceptorder) { dialog, _ ->
newStatus == ACCEPTED
showNewStatusConfirmationPopup(ACCEPTED, orderDetails)
dialog.dismiss()
}
.setNegativeButton(R.string.exit) {
dialog, _ -> dialog.dismiss()
navc!!.navigate(R.id.action_orderDetailsFragment_to_orderListFragment)
}
.setMessage(
getString(R.string.acceptMessage1)
)
.create()
dialog.show()
val textView = dialog.findViewById<View>(android.R.id.message) as TextView?
textView!!.textSize = 15f
textView!!.maxLines = 3[enter image description here][1]
}