How to get the data of a ListView item the user has clicked on with listview.GetItemAtPosition(e.Position)?

后端 未结 6 1819
温柔的废话
温柔的废话 2021-01-23 00:36

in a Xamarin.Android app, I have a ListView which I previously populated. In the listview_ItemClick event handler, which correctly fires, I would like to retrieve the text of t

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 01:28

    Check the below code for use the Particular Textview and other view from Listview Items.

    Like :

    TextView mTextView = (TextView) listview.getChildAt(0).findViewById(R.id.text);

    You can easily get the list item of Listview.

提交回复
热议问题