0
我有一個RecyclerView.Adapter
類,我想將其轉換爲ListAdapter
但它返回一個錯誤:「無法投射」。Casting ListAdapter到RecyclerView.Adapter失敗
public void setAdapter()
{
RecyclerAdapter adapter = new RecyclerAdapter(context);
ListView.setAdapter((ListAdapter) adapter);
}