Quick Action Demo

Quick Action Demo

Description:
This example of will show how we can generate a Action list or a popup window on a button press.

Algorithm:
1.) Create a new project by File-> New -> Android Project name it QuickActionDemo.
2.) You will see some default code into your main.xml, strings.xml and android manifest file.
3.) Now write following code into your main.xml:

 

 

 

4.) Create ActionItem.java and write following code:

 

 

 

5.) Create NewQAAdapter.java and write following:

 

 

 

6.) Click here to download full code content and other src and res files.

Steps:

1.) Create a project named QuickActionDemo and set the information as stated in the image.

Build Target: Android 2.1
Application Name: QuickActionDemo
Package Name: com.org. QuickActionDemo
Activity Name: QuickActionDemo
Min SDK Version: 7

2.) Open QuickActionDemo.java file and write following code there:

 

 

 

3.) Compile and build the project.
4.) Run on 2.1 simulator for the output.

Output

Comments 15

  1. Thankyou so much….was able to recreate it, but i want it to look like a grid..say in 2 * 2 matrix form….can you plz tell me how to do that..thanx in advance!! this was really helpful

  2. Hey you, why in this world didn’t you include the layout for the buttons here? You are referencing them in your code, so you were ought to include them into this so-called ‘tutorial’.

  3. Thankyou so much….was able to recreate it, but i want it to look like a grid..say in 2 * 2 matrix form….can you plz tell me how to do that..thanx in advance!! this was really helpful

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">