Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening a Modal Pop Up window

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?

like image 422
VansFannel Avatar asked Oct 14 '10 08:10

VansFannel


People also ask

How do I open a modal window?

To trigger the modal window, you need to use a button or a link. Then include the two data-* attributes: data-toggle="modal" opens the modal window. data-target="#myModal" points to the id of the modal.

What is a modal pop up window?

Modals, like pop-ups, are components that pop up on a user's screen. The key difference, however, is that the user would have initiated the action as part of their journey. Modals are used for specific workflows such as adding users, deleting content, sharing content, adding content, and more.

How do I open modal pop up in new tab?

User can open modal in same tab by clicking left mouse button on item. User can also click middle mouse button (scrollbar) to open modal in new tab.


1 Answers

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.

like image 164
Julian Avatar answered Sep 22 '22 14:09

Julian