title: How to attach array in onBindViewHolder
body: <p>I have returned this format of data </p>
  
  <pre><code>{
      "stations": [
          {
              "get_off": "sahayoginagar",
              "get_on": "kanti",
              "station_list": [
                  "values1",
                  "values2",
                  "values3",
                  "values4",
                  "values5",
                  "values6",
  
              ],
              "v_type": "micro"
          }
      ]
  </code></pre>
  
  <p>I can get the value of stations , but how to get the value of station_list</p>
  
  <p>I have used this logic inside onBindViewHolder but it only outputs last value!</p>
  
  <pre><code> for(String hello : station.getSt_List()){
              holder.station_name.setText(hello);
          }
  }
  </code></pre>
  
  <p>I am very much beginner in Android and also in Programming! Can somebody help me! </p>
  
  <pre><code>This is my adapter class: 
  public class StationsRecycleViewAdapter extends RecyclerView.Adapter&lt;StationsRecycleViewAdapter.StationViewHolder&gt;{
  
      List&lt;Station&gt; example;
      List&lt;Stations&gt; stationList;
      Stations station;
      List links;
      Stations ss;
      Station s;
  
      public class StationViewHolder extends RecyclerView.ViewHolder {
          public TextView station_name;
  
          public StationViewHolder(View itemView) {
              super(itemView);
                  station_name = (TextView) itemView.findViewById(R.id.station_name);
          }
      }
  
      public StationsRecycleViewAdapter(List&lt;Stations&gt; stationList){
          this.stationList = stationList;
      }
  
      @Override
      public StationViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  
          View itemView;
  
          itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_station, parent,false);
          return new StationViewHolder(itemView);
      }
  
      @Override
      public void onBindViewHolder(StationViewHolder holder, int position) {
  
  System.out.println("1");
          //s = example.get(position);
  
          station = stationList.get(position);
  
          System.out.println("Found ASrray" + station.getSt_List());
          System.out.println("Found or Not" + stationList.size() + station.getGet_on() + station.getGet_off());
          System.out.println("2");
          String str="";
          for(String hello : station.getSt_List()){
  
              // added \n here
  
              System.out.println("3");
              str+=hello+",\n";
          }
  
          // EDIT
          System.out.println("4");
          holder.station_name.setText(str);
  
      }
  
      @Override
      public int getItemCount() {
          return stationList.size();
      }
  }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/M556D.png" rel="nofollow">Please take a look a this pic.. I want this kind of view</a></p>
  
  <p><a href="http://i.stack.imgur.com/uJm07.jpg" rel="nofollow">Result i got</a></p>
  
  <p>for creating circle i have done this in XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
  
          &lt;ImageView
              android:id="@+id/circle"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
              android:background="@drawable/circle"
              android:layout_centerVertical="true"
  
          /&gt;
  
  
  
          &lt;TextView
              android:id="@+id/station_name"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Sahayoginagar"
              android:textStyle="italic"
              android:textSize="19dp"
              android:paddingLeft="30dp"
  
              /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>