Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set full width sweet alert dialog #198

Open
Thanushkajayasinghe opened this issue May 2, 2019 · 2 comments
Open

Set full width sweet alert dialog #198

Thanushkajayasinghe opened this issue May 2, 2019 · 2 comments

Comments

@Thanushkajayasinghe
Copy link

Thanushkajayasinghe commented May 2, 2019

Hi,
I'm using sweet alerts for my android app.but it's not getting full width. any way to resolve this? android version :- kitkat.
Thanks.

IMG_20190502_104227

@ersenkaya
Copy link

I already have same problem, is there anyone to help us?

I can set height but not width manually with: panicDialog.getWindow().setLayout(400, 600);

Thank you.

@ersenkaya
Copy link

ersenkaya commented Sep 4, 2019

I found solution.

  • create dimens.xml file into the values folder and add below lines;
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <dimen name="alert_width">500dp</dimen>
</resources>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants