private RecyclerView createRecyclerView ( ) { RecyclerView recyclerView = new RecyclerView ( getContext ( ) ) ; RecyclerView . LayoutParams params = new RecyclerView . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT ) ; recyclerView . setLayoutParams ( params ) ; setContentView ( recyclerView ) ; return recyclerView ; }
Create the RecyclerView and set it as the dialog view .