implements recyclerview adapter with appcompactactivity code example Example: how to get context in recyclerview adapter private Context context;