MiniumApps/launcher3/src/main/java/co/siempo/phone/adapters/SubscriptionItemAdapter.java
// Replace the contents of a view (invoked by the layout manager)
Replace the contents of a view (invoked by the layout manager)
Replace the contents of a view ( invoked by the layout manager )
@Override
    public void onBindViewHolder(final ViewHolder holder, int position) {
        final SkuDetails item = skuDetailsList.get(position);
        holder.txtTitle.setText(item.getTitle());
        holder.txtDescription.setText(item.getDescription());
        holder.txtPrice.setText(item.getPrice() + " " + item.getPriceCurrencyCode());
        holder.card.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ((InAppItemListActivity) context).purchaseItem(item);
            }
        });
    }
@ Override public void onBindViewHolder ( final ViewHolder holder , int position ) { final SkuDetails item = skuDetailsList . get ( position ) ; holder . txtTitle . setText ( item . getTitle ( ) ) ; holder . txtDescription . setText ( item . getDescription ( ) ) ; holder . txtPrice . setText ( item . getPrice ( ) + " " + item . getPriceCurrencyCode ( ) ) ; holder . card . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { ( ( InAppItemListActivity ) context ) . purchaseItem ( item ) ; } } ) ; }
Replace the contents of a view (invoked by the layout manager)
Replace the contents of a view ( invoked by the layout manager )