title: Android Studio Recyclerview use Retrofit
body: <p>please help me..
  i have 10 policy data on my PHP to show on recyclerview android studio using retrofit..but, when i run my emulator, the emulator just show 1 data..my plan just show PolicyNo..when i running emulator and check my log, they've said : my Number Policy Received: 10</p>
  
  <p>sorry for my bad english :( </p>
  
  <p><img src="https://i.stack.imgur.com/Fb41f.png" alt="result from emulator"></p>
  
  <p>here is my policyActivity :</p>
  
  <pre><code> public class PolicyActivity extends AppCompatActivity {
  
      private static final String TAG = PolicyActivity.class.getSimpleName();
      private String policyno;
  
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_policy);
  
  
  
          final RecyclerView recyclerView = (RecyclerView) findViewById(R.id.policy_recycler_view);
          recyclerView.setLayoutManager(new LinearLayoutManager(this));
  
  
  
          ApiEndPoint apiEndPoint =
                  ApiClient.getClient(this).create(ApiEndPoint.class);
  
          Call&lt;PolicyStatus&gt; call = apiEndPoint.getPolicyNo(policyno);
          call.enqueue(new Callback&lt;PolicyStatus&gt;() {
              @Override
              public void onResponse(Call&lt;PolicyStatus&gt; call, Response&lt;PolicyStatus&gt; response) {
                  List&lt;PolicyNo&gt; policyNo = response.body().getPolicyNo();
                  Log.d(TAG, "Number Policy Received: " + policyNo.size());
                  recyclerView.setAdapter(new PolicyAdapter(policyNo, R.layout.list_item_policy, getApplicationContext()));
  
              }
  
  
                  @Override
                  public void onFailure (Call &lt;PolicyStatus&gt; call, Throwable t){
                      Log.e(TAG, t.toString());
                  }
              });
          }
      }
  </code></pre>
  
  <p>and this is my policyadapter:</p>
  
  <pre><code> public class PolicyAdapter extends RecyclerView.Adapter&lt;PolicyAdapter.PolicyViewHolder&gt; {
  
  
      private List&lt;PolicyNo&gt; policyNo;
      private int rowLayout;
      private Context context;
  
      public static class PolicyViewHolder extends RecyclerView.ViewHolder{
          LinearLayout policyLayout;
          TextView nomorpolis;
  
          public PolicyViewHolder (View v){
              super(v);
              policyLayout = (LinearLayout) v.findViewById(R.id.policy_layout);
              nomorpolis = (TextView)v.findViewById(R.id.nomorpolis);
          }
      }
      public PolicyAdapter (List&lt;PolicyNo&gt;policyNo, int rowLayout, Context context){
          this.policyNo = policyNo;
          this.context = context;
          this.rowLayout = rowLayout;
      }
      @Override
      public PolicyAdapter.PolicyViewHolder onCreateViewHolder(ViewGroup parent, int viewType){
          View view= LayoutInflater.from(parent.getContext()).inflate(rowLayout, parent, false);
          return new PolicyViewHolder(view);
      }
  
      @Override
      public void onBindViewHolder (PolicyViewHolder holder, final int position){
          holder.nomorpolis.setText(policyNo.get(position).getPolicyNo());
      }
  
      @Override
      public int getItemCount() {return policyNo.size();}
  
  }
  </code></pre>
  
  <p>PolicyStatus :</p>
  
  <pre><code> public class PolicyStatus {
  
      @SerializedName("success")
      @Expose
      private Boolean success;
      @SerializedName("PolicyNo")
      @Expose
      private List&lt;PolicyNo&gt; policyNo = null;
  
      public Boolean getSuccess() {
          return success;
      }
  
      public void setSuccess(Boolean success) {
          this.success = success;
      }
  
      public List&lt;PolicyNo&gt; getPolicyNo() {
          return policyNo;
      }
  
      public void setPolicyNo(List&lt;PolicyNo&gt; policyNo) {
          this.policyNo = policyNo;
      }
  </code></pre>
  
  <p>PolicyNo :</p>
  
  <pre><code> public class PolicyNo {
  
      @SerializedName("ANO")
      @Expose
      private Integer aNO;
      @SerializedName("PolicyNo")
      @Expose
      private String policyNo;
      @SerializedName("ADate")
      @Expose
      private ADate aDate;
      @SerializedName("ADATE")
      @Expose
      private String aDATE;
  
      public Integer getANO() {
          return aNO;
      }
  
      public void setANO(Integer aNO) {
          this.aNO = aNO;
      }
  
      public String getPolicyNo() {
          return policyNo;
      }
  
      public void setPolicyNo(String policyNo) {
          this.policyNo = policyNo;
      }
  
      public ADate getADate() {
          return aDate;
      }
  
      public void setADate(ADate aDate) {
          this.aDate = aDate;
      }
  
      public String getADATE() {
          return aDATE;
      }
  
      public void setADATE(String aDATE) {
          this.aDATE = aDATE;
      }
  
      public PolicyNo (String policyNo){
          this.policyNo = policyNo;
  
      }
  
  }
  </code></pre>
  
  <p>api endpoint : </p>
  
  <pre><code> @GET ("policy.php")
  Call&lt;PolicyStatus&gt; getPolicyNo (@Query("PolicyNo") String policyNo);
  </code></pre>