I have an alert dialog box in my application.i want the alert dialog box to pop up from the bottom of the screen.can anyone help me??
Animation Api may be what you are looking for.
check this answer slide animation. Its like a iphone actionsheet sliding from bottom to center of the screen
I had done this customizing a dialog and adding a animated theme to the dialog. Its was so simple just passing the animation to the constructor of the dialog and calling the super function with the theme(Animation) will make this happen. Thankzz for all your help....happy coding....
Related
can somebody explain me how to do this alert dialog with an arrow on button? Thank you.
There are various cases where you can use.
I suggest you to use this library (ShowCaseView).
It has something like an arrow for each item.
What I want to do is to show the dialog message but make it still possible to click on the items behind. On any click, the dialog would dismiss
Right now I need to click once to dismiss the dialog and a second time to click on a field.
It is something possible ? Or is there an alternative to using Dialogs?
Edit: Solution found by adding Layout Flags to the window.
In kotlin:
dialog.window?.setLayout(ConstraintLayout.LayoutParams.FLAG_NOT_FOCUSABLE, ConstraintLayout.LayoutParams.FLAG_NOT_FOCUSABLE)
By using Dialog you cannot achieve what you are looking for. instead of using Dialog USE FRAGMENT.
The examples are given in official documentation here.
You Can define a full layout in the background of the dialog and set onClick listener to that layout
How to make a dialog like this example? (On the RIGHT)
If you look close, the dialog overlap the status bar and it has a very tiny margin from smartphone border...
How can I do this?
It looks like a dialog. Try to create a custom Activity as Dialog with some views. I hope it helps you.
https://developer.android.com/guide/topics/ui/dialogs.html#FullscreenDialog
Android Activity as a dialog
I want that if a button is clicked so a square will pop up in the bottom of the screen with title,message and buttons in the square(not a dialog).
how can I do this?
You are probably looking for PopupWindow. See an example here
Is it possible to add an activity indicator as a part of an alert? I need this because it is difficult to show alert view in white background. Please suggest ideas.
I was actually searching for progress dialog... loading indicator + message............