ListContact/app/src/main/java/com/example/a64/listcontact/fragments/CustomRecyclerview.java
@Override
    public CustomRecyclerview.ViewHolder onCreateViewHolder(ViewGroup parent,
                                                            int viewType) {
        // create a new view
        View v = LayoutInflater.from(parent.getContext())
                .inflate(R.layout.list, parent, false);
        // set the view's size, margins, paddings and layout parameters
        return new ViewHolder(v);
    }
// Create new views (invoked by the layout manager)
Create new views (invoked by the layout manager)
Create new views ( invoked by the layout manager )
@Override
    public CustomRecyclerview.ViewHolder onCreateViewHolder(ViewGroup parent,
                                                            int viewType) {
        View v = LayoutInflater.from(parent.getContext())
                .inflate(R.layout.list, parent, false);
        return new ViewHolder(v);
    }
@ Override public CustomRecyclerview . ViewHolder onCreateViewHolder ( ViewGroup parent , int viewType ) { View v = LayoutInflater . from ( parent . getContext ( ) ) . inflate ( R . layout . list , parent , false ) ; return new ViewHolder ( v ) ; }
Create new views (invoked by the layout manager)
Create new views ( invoked by the layout manager )
// create a new view // set the view's size, margins, paddings and layout parameters