Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The best approach will be custom dialog. As it will be helpful creating all those background colours and the effect. I am sure the link you have posted is using custom dialog as well,</p> <p>cheers</p> <p>link that might help:</p> <p>[1] <a href="http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog" rel="nofollow">http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog</a></p> <p>[2] <a href="http://androidideasblog.blogspot.com/2010/02/creating-custom-dialog-in-android.html" rel="nofollow">http://androidideasblog.blogspot.com/2010/02/creating-custom-dialog-in-android.html</a></p> <p>/// In your code implementations just add this code when you create dialog....after having this just have all TextView arranged in your layout and add that layout id to this below code good luck</p> <pre><code>//Dialog box creator private Dialog constructYourDialog() { //Preparing views LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.***your_xml_name***, (ViewGroup) findViewById(R.id.***Yout view id***)); //Building dialog AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setView(layout); builder.setPositiveButton("Show Videos", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Log.i("","Show Video Click"); dialog.dismiss(); }); builder.setNegativeButton("E-Mail", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Log.i("","E-mail Click"); dialog.dismiss(); } }); builder.setNeutralButton("Show Map", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Log.i("","Show Map Click"); dialog.dismiss(); } }); AlertDialog alert = builder.create(); return alert; } </code></pre>
 

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