How do i display a string array in recyclerview?
I have json data from the server. I converted it in a string array and passed it to the next activity. There i wanted to display this array in recyclerview. But As soon as i click the button the app stops. Here is my code for the display class. public class Display extends AppCompatActivity { TextView displaytext; String getarray[]; ArrayList<String> mylist; private RecyclerView rview; private RecyclerView.LayoutManager layoutManager; private Adapter madapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_dis
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.