tag:blogger.com,1999:blog-89878749563391212.post1631885783570250797..comments2024-03-25T17:53:11.127-07:00Comments on Android-er: Add and Remove view dynamically, keep track of child viewsUnknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-89878749563391212.post-51496668599611697432016-03-08T05:06:14.794-08:002016-03-08T05:06:14.794-08:00hi eric,
i am doing a task in which i will show s...hi eric,<br /><br />i am doing a task in which i will show spinner dynamically with add button event.... now on each click event of spinner of dynamic spinner i have some value related to selected item of spinners.... but the issue is when i have multiple spinners and selects item from lets say 2nd spinner item the related value of 2nd spinner should be changed but it is changing the last displayed textview value which is related to last spinner.......<br /><br />like i have <br />1) spinner with textview(dynamic)<br />2)on each event of add button spinner and textview will displays<br />3)now lets say i will click button for 4 times which displays(4 spinners and textviews)<br />4)the process should be select an item of 1st spinner the related data should be display on its textview(related data on textview will come from db)<br />5)the process should continue many times<br />6)Now the issue is when i select 2nd spinner item or 3rd spinner item its related data must display on textview 2nd and textview 3rd.... but when i selected 2nd or 3rd spinner item the related data is displaying on 4th spinners texview<br /><br /><br />how to solve this???? <br /><br /> Anonymoushttps://www.blogger.com/profile/02848009613060577530noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-63460400435730093312016-02-29T21:42:04.974-08:002016-02-29T21:42:04.974-08:00how to get each edit text value which will we add ...how to get each edit text value which will we add can you put code with example like one more button is submit then when click on it i get all text from all edittext and set in one textview.Vishal Halaninoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-66085957787104778532015-12-12T01:48:16.175-08:002015-12-12T01:48:16.175-08:00hello siddh,
Sorry, I don't understand your p...hello siddh,<br /><br />Sorry, I don't understand your problem.<br /><br />I tried to change the TextView to AutoCompleteTextView, and found no any problem. Please read <a href="http://android-er.blogspot.com/2015/12/add-and-remove-view-dynamically-with.html" rel="nofollow">Add and Remove view dynamically, with EditText/AutoCompleteTextView inside</a>.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-54167352881100263252015-12-11T03:22:47.379-08:002015-12-11T03:22:47.379-08:00Hello ,
Yes exactly i am doing same but like in y...Hello ,<br /><br />Yes exactly i am doing same but like in your row.xml i have taken a Autocompletetextview which is inflating There is no issue regarding the add view but when i remove and specific view from Number 1 to 10 suppose i remove view number 5 so the text in 4 and 6 should be same so i need to save the selected content to some list but in view how can i do that ?? i stuck only when i remove a particular specially not from bottom ??<br />siddhnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-45846661079701353652015-12-11T03:12:31.514-08:002015-12-11T03:12:31.514-08:00hello siddh,
How you compare strings?
In Java, t...hello siddh,<br /><br />How you compare strings?<br /><br />In Java, to compare strings, using StringA.equal(StringB), NOT (StringA==StringB).Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-72100734846386602132015-12-11T02:46:39.565-08:002015-12-11T02:46:39.565-08:00Hey i am just taking reference your code but how i...Hey i am just taking reference your code but how i will compare the text of your child view because if its will be same no problem but if its different then i need to replace the text with top parent to nearest child.!! Is it possible i am using AutocompleteTextview and Assign the same Text to the new View ??siddhnoreply@blogger.com