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
Related
I need to create such pop up window(as in Todoist app), that after the click on FAB this pop up window have to appear on the button of the screen and after opening the keyboard this popup have to be above it. Please 🙏 help me guys.
You can do this by creating custom pop-up window. You can check here:
https://android--code.blogspot.in/2016/01/android-popup-window-example.html
I want to pop open a DatePickerDialog in a certain screen, but I am required to not grey out the rest of the screen (the view behind the dialog) when the DatePickerDialog window opens. Is there a way to achieve this?
You probably would want to create your own custom dialog. You can extend DialogFramgent and change it accordingly.
See the Android doc HERE for a great example.
Or, use PopupWindow if you want a popover dialog with control of the background, see this SO post.
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);
I want to show a modal pop up window with a TextView and two buttons when the user "clicks" on a ListView item.
How can I do that?
Take a look at the AlertDialog.Builder class.
http://developer.android.com/guide/topics/ui/dialogs.html#AlertDialog
The above link should provide you with all the necessary information.
I would like to have an EditText with one modification: on the right but still inside the EditText there should an arrow pointing downwards that I can set OnClickListener to so that when the user clicks on the arrow it displays a menu.
What is the best way to do this?
Do you mean something like this ?
see image
Add the arrow by setting the drawable right attribute
android:drawableRight="#drawable/right"
to your EditText. Then you would need to set an OnTouchListener to get the events.
I did this by putting EditText and a Button into RelativeLayout, the Button (which has custom background drawable) is overlapping the EditBox.
When user clicks on it, the EditBox doesn't receive the click event.
Sounds like a combo box. If you look at the "Building Custom Components" section of the Dev Guide, they mention combo box briefly, but give details on how to build any custom component.