A few places in my app I use system.showAlert with more than two options. Typically I have a YES, NO, CANCEL situation. An example is shown below:
local function closeList(e) if (e.action == "clicked" and e.index == 3) then return end if (e.action == "clicked" and e.index == 1) then -- Copy items end -- Close end native.showAlert("Question", "Copy selected items and close?", {"Yes", "No", "Cancel"}, closeList)
The problem is that three options does not look good at all on the (Android) device. Here’s how it looks:
Is this a bug, or is it supposed to look like this? Is there a way to make the center option centered?
And while I’m at it: What’s the deal with the order of the “buttons”? I don’t get the system. It’s not reversed and it’s not in alphabetical order. It’s a mess.
To add to the confusion, the order shown in the simulator is CANCEL, NO, YES…
Also it’s written in the doc:
“The first button will have a unique color to suggest that the user should choose it by default.”
I’ll be the first to admit that I’m not sure what is the “first button” here. Is it the first in my list? Or is it the first button that happens to be shown first?
Anyway, I don’t see anything special with the colors of any of the buttons.
CoronaSDK v2016.2824
Device: Nexus 6P / Android 6.0.1