java - Adding a textView -


Just started with Android development, I decided to work on the API demo, tried to add some features to it , Modify them, etc.

I am currently at List8 and I want to add a textview to it, as if a small description of the photo on every ListView row, so, how do I keep the main xml layout, i public view getView Tried to "draw" a textView object in () but they will not be visible.

  list view view = (list view) findViewById (R.id.listview); TextView textView = new text view (this); TextView.setText ("test"); View.addView (TextView);    

Comments