How to modify a layout from a custom ArrayAdapter when i press an item using Android Arrayadapter

0 votes
asked Mar 16, 2016 by vormwald (840 points)
I have LinearLayout that contains listView and RelativeLayout.

4 Answers

0 votes
answered Apr 11, 2016 by Hardway (210 points)
Tutorial on managing listview items: add, delete.
As we did for the add functionality, we can implement the delete item.
To do so we need a button, so that when user presses it a dialog window appears.
0 votes
answered May 7, 2016 by logging_W (260 points)

It should be inflating the item not the main layout.
This layout causes the image to appear on the left.

You can install compiled version from
commented May 8, 2016 by Forget (890 points)
This class is a standard Android class and it is very simple to use
0 votes
answered Jun 2, 2016 by qba2082 (150 points)
Check this solution to detect and notify the user Using lists in Android (ListView) - Tutorial - vogella
You can find it here
0 votes
answered Jun 2, 2016 by jun_83 (530 points)
In our case the ArrayAdapter contains just strings to make things simpler
commented Jun 2, 2016 by You_8663 (2,560 points)
Another important and very useful adapter is the ArrayAdapter
commented Jun 3, 2016 by rzh_3274 (460 points)
We showed how an user can interact with this view using OnItemClicklistener
commented Jun 3, 2016 by betsch (360 points)
Continue the line with other element without braking
commented Jun 3, 2016 by sbe476 (100 points)
There is a certain amount of confusion in the answers to this this question. See a nice article on it here
commented Jun 4, 2016 by Gb4388szymko (100 points)
I am posting this to advise anyone else new to this problem to ignore it. Please visit its description page for its usage
commented Jun 4, 2016 by Absolute_boe (750 points)
One problem with this trick is that description attribute cannot be localized. Hope this helps someone

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!