Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's called a Quick Actions Popup, you have to create it yourself.</p> <p>Refer this <a href="http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/" rel="nofollow">LINK</a>.</p> <p>Sample code snippet::</p> <pre><code>//Add action item ActionItem addAction = new ActionItem(); addAction.setTitle("Add"); addAction.setIcon(getResources().getDrawable(R.drawable.ic_add)); //Accept action item ActionItem accAction = new ActionItem(); accAction.setTitle("Accept"); accAction.setIcon(getResources().getDrawable(R.drawable.ic_accept)); //Upload action item ActionItem upAction = new ActionItem(); upAction.setTitle("Upload"); upAction.setIcon(getResources().getDrawable(R.drawable.ic_up)); </code></pre> <p>Create quickaction instance and setup listener</p> <pre><code>final QuickAction mQuickAction = new QuickAction(this); mQuickAction.addActionItem(addAction); mQuickAction.addActionItem(accAction); mQuickAction.addActionItem(upAction); //setup the action item click listener mQuickAction.setOnActionItemClickListener(new QuickAction.OnActionItemClickListener() { @Override public void onItemClick(int pos) { if (pos == 0) { //Add item selected Toast.makeText(Example1Activity.this, "Add item selected", Toast.LENGTH_SHORT).show(); } else if (pos == 1) { //Accept item selected Toast.makeText(Example1Activity.this, "Accept item selected", Toast.LENGTH_SHORT).show(); } else if (pos == 2) { //Upload item selected Toast.makeText(Example1Activity.this, "Upload items selected", Toast.LENGTH_SHORT).show(); } } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload