林回收视图试图在对话,但对话框不显示任何添加回收看法......我增加了关于回收视图卡和要显示在对话框如何添加在对话框
android.support.v7.app.AlertDialog.Builder dialog = new android.support.v7.app.AlertDialog.Builder(getContext());
LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View dialogView = inflater.inflate(R.layout.last_transaction_report, null);
recyclerView = (RecyclerView) dialogView.findViewById(R.id.transactio_rep_recyclerView);
dialog.setView(dialogView);
AlertDialog alertDialog = dialog.create();
// alertDialog.setContentView(dialogView);
alertDialog.show();
adapter = new TransactionReportCardAdapter(listTransactionDetails, this);
recyclerView.setAdapter(adapter);
setAdapter(不能应用于LastTransactionsAdapter类 –
@suraj什么是LastTransactionsAdapter类? –
在textview上设置数据,并将这些textview添加到cardview上 –