Filtered ListView result based on a Survey?How to sort a list of objects based on an attribute of the objects?Lazy load of images in ListViewlist comprehension vs. lambda + filterSurvey Controller POST method problems ASP.NET MVCAndroid ListView items not responding when come back from another activity?Android listview data doesn't persist when re-createdWhy am I getting an blank listview?! (using simplecursoradapter)Adding a RadioButton to a itemView adapter within a ListViewHow to update ListView from other activitiesCustom ListViews,ArrayLists,ArrayAdapters
Can a country avoid prosecution for crimes against humanity by denying it happened?
Do universities maintain secret textbooks?
How are the cards determined in an incomplete deck of many things?
How could reincarnation magic be limited to prevent overuse?
Given a specific computer system, is it possible to estimate the actual precise run time of a piece of Assembly code
What are the electrical characteristics of a PC gameport?
Killing task by name - start menu shortcut
Would someone mind just getting me started with my Russian homework?
Punishment in pacifist society
What is the practical impact of using System.Random which is not cryptographically random?
How is the casino term "a high roller" commonly expressed in German?
What are ways to record who took the pictures if a camera is used by multiple people?
Does the telecom provider need physical access to the SIM card to clone it?
From not IT background to being a programmer
Using font to highlight a god's speech in dialogue
How would a disabled person earn their living in a medieval-type town?
How can I portray a character with no fear of death, without them sounding utterly bored?
Turn off Google Chrome's Notification for "Flash Player will no longer be supported after December 2020."
To minimize the Hausdorff distance between convex polygonal regions
Fishing from underwater domes
Is there research on the efficacy of taking good notes in math class?
Understanding GFCI configuration in basement
Can users with the same $HOME have separate bash histories?
How do you manage to study and have a balance in your life at the same time?
Filtered ListView result based on a Survey?
How to sort a list of objects based on an attribute of the objects?Lazy load of images in ListViewlist comprehension vs. lambda + filterSurvey Controller POST method problems ASP.NET MVCAndroid ListView items not responding when come back from another activity?Android listview data doesn't persist when re-createdWhy am I getting an blank listview?! (using simplecursoradapter)Adding a RadioButton to a itemView adapter within a ListViewHow to update ListView from other activitiesCustom ListViews,ArrayLists,ArrayAdapters
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have one activity with 5 radio button groups (each with 5 buttons) and a fragment with a large ListView(with custom adapter).
Activity XML is like a survey with a Submit button. On submit, I am trying to use the results of the survey to filter out my ListView. Depending on which radio buttons were selected, sometimes multiple items should display in the final ListView.
I can't seem to come up with a single way to solve this problem...
I think the best way to do this is by assigning a 5 digit numeric tag to each item in the ListView (could be identical) and a single digit to each radio button (survey would result in a 5x5 matrix). The result of a survey will give a 5 digit numeric value to be compared with all the items in a ListView and display only those that match.
Does anyone know of a better solution? Partly because I can't even get sequence above to work. Currently using view.getID() for buttons and converting to integers. For ListView items, I have a string-array with items formal like so:
<item> apple:11111 </item>
and trying to use
String.split()
but it's not working. I haven't gotten to the part where 5 digit integers are compared.
If anyone could point me to some concepts or articles or examples I would really appreciate it.
add a comment |
I have one activity with 5 radio button groups (each with 5 buttons) and a fragment with a large ListView(with custom adapter).
Activity XML is like a survey with a Submit button. On submit, I am trying to use the results of the survey to filter out my ListView. Depending on which radio buttons were selected, sometimes multiple items should display in the final ListView.
I can't seem to come up with a single way to solve this problem...
I think the best way to do this is by assigning a 5 digit numeric tag to each item in the ListView (could be identical) and a single digit to each radio button (survey would result in a 5x5 matrix). The result of a survey will give a 5 digit numeric value to be compared with all the items in a ListView and display only those that match.
Does anyone know of a better solution? Partly because I can't even get sequence above to work. Currently using view.getID() for buttons and converting to integers. For ListView items, I have a string-array with items formal like so:
<item> apple:11111 </item>
and trying to use
String.split()
but it's not working. I haven't gotten to the part where 5 digit integers are compared.
If anyone could point me to some concepts or articles or examples I would really appreciate it.
add a comment |
I have one activity with 5 radio button groups (each with 5 buttons) and a fragment with a large ListView(with custom adapter).
Activity XML is like a survey with a Submit button. On submit, I am trying to use the results of the survey to filter out my ListView. Depending on which radio buttons were selected, sometimes multiple items should display in the final ListView.
I can't seem to come up with a single way to solve this problem...
I think the best way to do this is by assigning a 5 digit numeric tag to each item in the ListView (could be identical) and a single digit to each radio button (survey would result in a 5x5 matrix). The result of a survey will give a 5 digit numeric value to be compared with all the items in a ListView and display only those that match.
Does anyone know of a better solution? Partly because I can't even get sequence above to work. Currently using view.getID() for buttons and converting to integers. For ListView items, I have a string-array with items formal like so:
<item> apple:11111 </item>
and trying to use
String.split()
but it's not working. I haven't gotten to the part where 5 digit integers are compared.
If anyone could point me to some concepts or articles or examples I would really appreciate it.
I have one activity with 5 radio button groups (each with 5 buttons) and a fragment with a large ListView(with custom adapter).
Activity XML is like a survey with a Submit button. On submit, I am trying to use the results of the survey to filter out my ListView. Depending on which radio buttons were selected, sometimes multiple items should display in the final ListView.
I can't seem to come up with a single way to solve this problem...
I think the best way to do this is by assigning a 5 digit numeric tag to each item in the ListView (could be identical) and a single digit to each radio button (survey would result in a 5x5 matrix). The result of a survey will give a 5 digit numeric value to be compared with all the items in a ListView and display only those that match.
Does anyone know of a better solution? Partly because I can't even get sequence above to work. Currently using view.getID() for buttons and converting to integers. For ListView items, I have a string-array with items formal like so:
<item> apple:11111 </item>
and trying to use
String.split()
but it's not working. I haven't gotten to the part where 5 digit integers are compared.
If anyone could point me to some concepts or articles or examples I would really appreciate it.
edited Mar 28 at 6:19
Zoe
15.7k12 gold badges66 silver badges96 bronze badges
15.7k12 gold badges66 silver badges96 bronze badges
asked Mar 28 at 0:36
Edward BrandEdward Brand
64 bronze badges
64 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388518%2ffiltered-listview-result-based-on-a-survey%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388518%2ffiltered-listview-result-based-on-a-survey%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown