Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ListView lv = (ListView) findViewById(R.id.list); lv.refreshDrawableState();
不管用。
从您传入适配器的列表/字符串 [] 等中清除其所有数据,并通知您的适配器类对象的调用 notifyDataSetChange()。
youlist.clear(); yourAdapter.notifyDataSetChanged();