如何在没有 setOnItemClickListener Android 的情况下获取我的自定义列表视图的第一项价值?
这是我的代码
// list is my listview adapter
list.setOnRefreshListener(new OnRefreshListener() {
public void onRefresh() {
View view = (View) list.getItemAtPosition(0);
String Title= ((TextView) view.findViewById(R.id.Title))
.getText().toString();
Toast toast = Toast.makeText(CustomizedListView.this,
judul, Toast.LENGTH_LONG);
toast.show();
String url = "http://blablabla.com/android/inbox.json/index.php?act=new_update&id_title="+Title;
grabURL(url);
}
});