@Override
    public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
        // Create a new view.
        View v = LayoutInflater.from(viewGroup.getContext())
                .inflate(R.layout.device_card_view, viewGroup, false);
        return new ViewHolder(v);
    }
@Override
    public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
        
        View v = LayoutInflater.from(viewGroup.getContext())
                .inflate(R.layout.device_card_view, viewGroup, false);
        return new ViewHolder(v);
    }
@ Override public ViewHolder onCreateViewHolder ( ViewGroup viewGroup , int viewType ) { // Create a new view. View v = LayoutInflater . from ( viewGroup . getContext ( ) ) . inflate ( R . layout . device_card_view , viewGroup , false ) ; return new ViewHolder ( v ) ; }
Create new views (invoked by the layout manager)
Create new views ( invoked by the layout manager )