content: package com.frogobox.apprecycler.sample.java.usingadapter;
  
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  
  import androidx.annotation.NonNull;
  
  import com.frogobox.apprecycler.model.ExampleModel;
  import com.frogobox.ui.R;
  import com.frogobox.recycler.core.FrogoRecyclerNotifyListener;
  import com.frogobox.recycler.core.FrogoRecyclerViewAdapter;
  import com.frogobox.recycler.core.FrogoRecyclerViewHolder;
  
  import org.jetbrains.annotations.NotNull;
  
  
  /**
   * Created by Faisal Amir
   * FrogoBox Inc License
   * =========================================
   * FrogoRecyclerViewAdapter
   * Copyright (C) 20/12/2019.
   * All rights reserved
   * -----------------------------------------
   * Name     : Muhammad Faisal Amir
   * E-mail   : faisalamircs@gmail.com
   * Github   : github.com/amirisback
   * LinkedIn : linkedin.com/in/faisalamircs
   * -----------------------------------------
   * FrogoBox Software Industries
   * com.frogobox.frogorecyclerviewadapter.javasample
   */
  public class JavaSampleViewAdapter extends FrogoRecyclerViewAdapter<ExampleModel> {
      @NonNull
      @Override
      public FrogoRecyclerViewHolder<ExampleModel> onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
          return new JavaSampleViewHolder(viewLayout(parent));
      }
  
      static class JavaSampleViewHolder extends FrogoRecyclerViewHolder<ExampleModel> {
  
          private TextView tvExample = itemView.findViewById(R.id.frogo_rv_list_type_1_tv_title);
  
          JavaSampleViewHolder(@NotNull View view) {
              super(view);
          }
  
          @Override
          public void initComponent(ExampleModel data, int position, @NonNull FrogoRecyclerNotifyListener<ExampleModel> notifyListener) {
              tvExample.setText(data.getName());
          }
      }
  
  }
  