GTU Android Program 11 Android Image Gallery Example

GTU Android Program 11 Understanding of UI : a.  Create an UI such that , one screen have list of all the types of cars b. On selecting of any car name, next screen should show Car details like : name , launched date , company name, images(using gallery) if available, show different  colors in which it is available.

GTU Android Program 11

Want to display number of images in single activity like Image Gallery ? Here is the complete program which will display image gallery as per the choice of user. Here there are two activity, Activity 1 will ask user for option like selection of interested in cars, in the second activity car details will be shown along with image gallery of the car. Make sure to add images of  car before you run it and be careful here is CustomAdapter which will bit difficult to understand at first sight, try to read 2-3 times to understand the concept of the CustomAdapter.

Step  1 : Create New Project.

Step 2 : Add images into res/drawable folder (a1.png, a2.png, b1.png, b2.png, c1.png, c2.png)

Step 3 : Add another activity

Lets check out complete code.

Question related with Android Image Gallery

  • Explain with code snippet Gallery view? How it is differ from Image View

 

Location : res\layout

FileName: activity_main.xml

 

Location : res\layout

FileName: activity_main2.xml

 

Location : src\package\

FileName : MainActivity.java

 

Location : src\package\

FileName : MainActivity2.java

 

Output

GTU Android Program 11

output

GTU Android Program 11

output

GTU Android Program 11

GTU Android Program 11

GTU Android Program 11

GTU Android Program 11

GTU Android Program 11

Download Complete Code with All Images and Code

Download Few Popular Android Apps

  1. Bank IFSC Code : Now easily get bank ifsc code which you need while online transfer.
  2. All India PIN Code : Get all india PIN Code Numbers on 1 Android App.
  3. RTO Code : Get all India RTO Code on 1 Android App.
  4. Google 2 Step Code Speak : Now app will speak your google 2 step code, so no need to check mobile, code will reach you.
  5. All Gujarat ST Bus Stand Helpline Numbers (GSRTC Helpline Numbers)
  6. Mumbai City Bus Numbers (MSRTC Helpline Numbers)

  7. Andhra Pradesh City Bus Helpline Numbers (APSRTC Helpline Numbers)

  8. Bhavnagar Diary (Bhavnagar Business Directory)

  9. Baroda Diary (Baroda Business Directory)
  10. Surat Diary (Surat Business Directory)
  11. Ahmedabad Diary (Ahmedabad Business Directory)
  12. Rajkot Diary (Rajkot Business Directory)

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative