Where is an Android Snackbar that will enter from right - android

I try to find a Android snackbar typ of widget that will enter not from top or bottom but from right or left. Further demands is custom message, icon, stacking, dismiss button, callback handlers. The thing is when snackbar is popping up from the bottom it can block keyboard or EditText. The eyecatcher is also more natural if snackbar message come from right and is centered vertically on device screen
btw, Windows 10 have this notifications popping out from the right behaving in general exactly like Android Toast
Another behavior on this snack is that when snackbar(if we now can still call it a snackbar) is that when it pops out from the right it can have a graphical progress bar under message text counting down from like 3 sec or 5 sec or whatever duration was chosen before snackbar pop back and disappear. This is simply in respect for the user who is attacked by the snack, to let him know when snack go away..
Any ide?

You can read answers to similar question here: How can you adjust Android SnackBar to a specific position on screen
I hope you will find helpful advice on how to solve this problem.

I think you want your snackbar to come from right side, If your version is more than lollipop then use Slide function and set the view in slide function it will come from right only

Related

Android - How to make a pop up message notification like this?

The pop up message is the Green one. I tried to use snackbar but many says Snackbar cant make custom layout and Toast doesnt have an action. So what should I use to make that green pop up message?
You can create a custom layout for Snackbar. Check-out the solution
https://stackoverflow.com/a/33441214/8122085

Make Toast message overlap SoftKeyboard

I have a Toast that shows up while the user is typing in an EditText widget however it hides under the SoftKeyboard and cannot be seen unless the user hits backbutton to remove the keyboard.
Is there a way to make the Toast show anyways?.
Well overriding that behavior would take some hacking and I think not a preferred solution to take over the placement of the toast. Some phones will toast over the keyboard and others toast above. I hate when they toast over the keyboard as it blocks my typing personally.
However, if you want full control of your toast you can use a custom library like: https://android-arsenal.com/details/1/6209
But I prefer to use Snackbar as it looks nicer, and stays at the bottom for you and can handle a single button if desired.

How to pop up a message that i will create in android

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

EditText.setError() popup placement

I'm using the v16 API and having problems with where the popup is being placed when the onscreen keyboard is displayed.
The first problem is that if the EditText is at the bottom of the screen, when I touch the field to open it for editing the popup is displayed below the control and the immediately covered as the keyboard appears. It doesn't reposition itself above the EditText until a keypress triggers my validation code to fire again on the new value.
The second problem is that when I close the keyboard and the ScrollView containing the text scrolls back down from where it positioned itself to show the EditText above the keyboard the popup remains placed on the upper half of the screen instead of where the EditText is until I touch something else on the screen (triggering the ScrollView to do a redraw???).
Unfortunately that popup has various problems like this :(
Perhaps a simple solution in your case is to forcibly invalidate the UI when the keyboard has displayed and dismissed? Can't recall if the Popup will reposition if the EditText is invalidated, but worth trying as the alternative may be to re-implement.
Checkout my android-formidable-validation lib on github, it re-implements...though has its own problems - if you go down that path, why not give me a hand with some contributions ;)

Switching between dialog box layouts without closing the dialog box

When my app is first run, I would like to have a welcome message displayed in a dialog box. Then the user can click next at the bottom, and the box stays but a new layout is displayed where the user can input information.
How would I go about this? It would also be great if I was able to add an animation between the two layouts, the second one sliding in from the right for example. Is this possible?
I was thinking I may be able to use
builder.setView(secondlayout);

Categories

Resources