1

I developed a hybrid mobile app. I was wondering myself if there is a way to change the space between buttons raised from cordova-plugin-dialogs on Android.

They usually look like:

enter image description here

I'm not very familiar with native development (on Android), so is there anything I can change to affect the spacing of those buttons? e.g. on Android manifest or something?

Thanks in advance!

kerosene
  • 930
  • 14
  • 31

1 Answers1

4

The solution here falls in the "Create your custom dialog in Android" solution, actually. Those are the default dialogs, and the buttons are generated automatically. I don't think you can control anything else than the theme, texts and pretty much that's it.

If you want to be able to completely modify it, create a custom native dialog (for each platform you're targeting, if possible in iOS -not sure right now), and create a cordova plugin that opens that dialog, and returns something when the buttons are clicked...

Or simply create a "dialog" (modal) in html. That will be much simpler, if you're already using cordova.

Community
  • 1
  • 1
Sergi Juanola
  • 6,531
  • 8
  • 56
  • 93