Changing the visibility of a textview in a listview
I have a listview which is build up of two textviews coming from a separate layout file. I use a BaseAdapter to build the list from a JSON file. I would like the first textview (Caption) to be clickable, if clicked that it shows the second textview (Text), and if clicked again that it hides it. When I use an onClick ( android:onClick="ClText" ) I get an error. I think I should use something of an onClickListener , but since I'm new to Android I'm not quite sure how to use it. Can someone help me out with the code please? You just need to set the onClickListener for the first item in the