Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing an Android application and I need to pass multiple selections from the application,similar to selection from a multiselect checkbox.I have searched a lot and cannot find how to do this anywhere.Can you please help?
Also, I need a Image gallery and if an image is selected user should be able to zoom in the image and view image.Is there any plugin or any example code that can do this that you would recommend?

C#
Edit: To explain further I have attached a screenshot of the app.I am currently passing a single size and single color on each "Add to cart".I want to be able to send multiple sizes and color values.THe current code is given below. also I need to be able to zoom into the image which is in the square above the size and colour box.I hope this helps explain the problem I am facing.


EDIT: I am putting a shortened version of the code.This code passes a size value from the spinner when a value is selected.(setOnItemSelectedListener).the spinner has id size_spinner.

What I have tried:

JAVA



private void setSizeData(Context context, int pos) {

sizeList = new ArrayList<>();


sizeList = style_modelsList.get(pos).getSizeModels();

if (sizeList != null) {
SizeAdapter sizeAdapter = new SizeAdapter(context);
size_spinner.setAdapter(sizeAdapter);
size_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView


}

@Override
public void onNothingSelected(AdapterView
}
});
Posted
Updated 16-Jul-16 4:59am
v4
Comments
Richard MacCutchan 13-Jul-16 10:34am    
Please do not just dump a load of unformatted code like this. Show only the code where the problem occurs, and give exact details of the issue and any error messages.
Richard Deeming 13-Jul-16 10:35am    
Do you seriously expect anyone to go through that massive unformatted code-dump to find the problem?!

Click "Improve question" and remove any code that isn't relevant to the problem. Put the rest of the code within <pre>...</pre> tags so that it's formatted properly.

1 solution

Go to http://www.codeproject.com/KB/android/#Android+Tutorial+Contest[^] and you will find lots of useful tutorials and samples.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900