Found 6 repositories(showing 6)
hexah3dron
A complete guide to setting up a servarr stack with Radarr, Sonarr, Overseerr, Prowlarr, SABnzbd, qbittorrent, and Plex
Aldemirps
📦 Provide scripts and configs to simplify Arr Stack setup and management on Proxmox VE with storage, VPN, and container tools.
eslutz
Archive extraction container for *arr stack that automatically unpacks compressed downloads.
mschlachter
A simple container that periodically triggers searches for missing content on the arr stack.
crucifix86
Unified arr stack: Sonarr, Radarr, Prowlarr, SABnzbd, qBittorrent, WireGuard — single Docker container with portal UI
Actually what i am doing is giving user option to increment decrements products on all list-view items as shown in attached picture I am able to take listview item name,price to next screen but how should take the quantity value which is setting in textview to next screen on button click in Activity . ***the quantity updation code of spinner is done in the adapter of products Code: Adapter get view:- public View getView(final int position, View convertView,ViewGroupparent) { holder = null; RowItem rowItem = getItem(position); mInflater = (LayoutInflater) context .getSystemService(Activity.LAYOUT_INFLATER_SERVICE); if (convertView == null) { convertView = mInflater.inflate(R.layout.item_details_view, null); holder = new ViewHolder(); holder.txtDesc = (TextView) convertView.findViewById(R.id.desc); holder.txtTitle = (TextView) convertView.findViewById(R.id.title); holder.txtPrice = (TextView) convertView.findViewById(R.id.pricee); holder.add = (Button) convertView.findViewById(R.id.button1); holder.sub = (Button) convertView.findViewById(R.id.button2); holder.add_to = (Button) convertView.findViewById(R.id.button3); convertView.setTag(holder); } else holder = (ViewHolder) convertView.getTag(); holder.txtPrice.setText("Price $ " + rowItem.getPrice()); holder.txtTitle.setText(rowItem.getTitle()); holder.txtTitle.setTag(position); holder.add.setTag(position); holder.sub.setTag(position); final ViewHolder viewHolderFinal = holder; final RowItem finalRowItem = rowItem; holder.add.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int quantity = finalRowItem.getQuantity(); // get the quantity finalRowItem.setQuantity(quantity + 1); // update it by adding 1 viewHolderFinal.txtDesc.setText(finalRowItem.getDesc()); } }); holder.sub.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int quantity = finalRowItem.getQuantity(); // get the quantity // for this row item finalRowItem.setQuantity(quantity - 1); // update it by // subtracting 1 viewHolderFinal.txtDesc.setText(finalRowItem.getDesc()); } }); return convertView; } ProductList.java import java.util.ArrayList; import java.util.HashMap; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.AlertDialog; import android.app.Fragment; import android.app.FragmentTransaction; import android.app.ProgressDialog; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.util.SparseBooleanArray; import android.view.ActionMode; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.Button; import android.widget.ListView; import android.widget.Toast; public class ProductList extends Fragment { ItemListBaseAdapter apage; ListView userlist; RowItem item; ArrayList<RowItem> sub_cat_arr = new ArrayList<RowItem>(); String u = Login.url + "Products/API/?f=" + "get_product&cat=", id, level; Button button_show_cart; int global_position; public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewrootView=inflater.inflate (R.layout.pro_list,container, false); userlist = (ListView) rootView.findViewById(android.R.id.list); button_show_cart = (Button) rootView.findViewById(R.id.button_add); new subcat_data().execute(); apage = new ItemListBaseAdapter(getActivity(), R.layout.item_details_view, sub_cat_arr); userlist.setAdapter(apage); // userlist.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); apage.clear(); button_show_cart.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated **unable to get per listview Selected quantity here whose value is more than 0 to take to next screen ** Intent x = new Intent(getActivity(), Screen2.class); startActivity(x); } }); return rootView; } Please suggest friends what to do? Thanks screen shot link: http://i.stack.imgur.com/HmuzT.png
All 6 repositories loaded