pass spinner and switch values to another activity
问题 I'm trying to pass Switch and Spinner Values from PostAdapter to PostDetail Activity on item click. Here is how I done it: holder.post_image.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { SharedPreferences.Editor editor= mContext.getSharedPreferences("PRESS", Context.MODE_PRIVATE).edit(); editor.putString("postid", post.getPostid()); editor.apply(); /* ((FragmentActivity)mContext).getSupportFragmentManager().beginTransaction().replace(R.id.nav_host