我正在创建一个ListView
using LinearLayout
. 我这样做是因为我想将此列表放在ScrollView
. 这是我使用LinearLayout
.
adapter = new BookingSessionListAdapter(this,null, appDeleg);
LinearLayout ll = (LinearLayout)this.findViewById(R.id.listLayout);
LinearLayout.LayoutParams layoutParams =
newLinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
for (int i = 0; i < adapter.getCount(); i++)
{
View item = adapter.getView(i, null, null);
ll.addView(item,layoutParams);
}
现在我想刷新列表。我怎样才能做到这一点?
谢谢