- Forum posts: 2
Jul 9, 2016, 11:33:34 AM via Website
Jul 9, 2016 11:33:34 AM via Website
Hi,
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?
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.
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
}
});
— modified on Jul 17, 2016, 7:21:00 AM
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.