Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i = 0; i < checkoutItemsList.size(); i++) {
- /* lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
- lp.setMargins(30, 50, 30, 0);*/
- productNames += checkoutItemsList.get(i).getCustomersBasketProduct().getProductsName();
- for (j = 1; j <= getCartSize(); j++) {
- lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
- lp.setMargins(30, 50, 30, 0);
- //candidates name starts here
- candidatesNamesTv = new TextView(getActivity());
- candidatesNamesTv.setId(R.id.candidatesnametv);
- candidatesNamesTv.setText("" + productNames + "(" + j + ")");
- candidatesNamesTv.setTextSize(16);
- candidatesNamesTv.setTextColor(getResources().getColor(R.color.textColorSecondaryDark));
- candidatesNamesTv.setLayoutParams(lp);
- allcandidatesNamesTv.add(candidatesNamesTv);
- //Textview ends here
- //candidates names ends here
- Drawable img = getContext().getResources().getDrawable(R.drawable.ic_person);
- img.setBounds(0, 0, 60, 60);
- candidatesNames = new AppCompatEditText(getActivity());
- candidatesNames.setBackgroundResource(R.drawable.rounded_corners_edittext_dark);
- candidatesNames.setId(R.id.candidatesname);
- candidatesNames.setHint("Candidate Full Name");
- candidatesNames.setHintTextColor(getResources().getColor(R.color.textColorPrimaryDark));
- candidatesNames.setTextColor(getResources().getColor(R.color.textColorSecondary));
- candidatesNames.setCompoundDrawables(img, null, null, null);
- candidatesNames.setCompoundDrawablePadding(20);
- candidatesNames.setFilters(new InputFilter[]{new InputFilter.AllCaps()});
- candidatesNames.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES | InputType.TYPE_TEXT_FLAG_MULTI_LINE);
- candidatesNames.setLayoutParams(lp);
- allCandidatesnames.add(candidatesNames);
- theLayout.addView(candidatesNamesTv);
- theLayout.addView(candidatesNames);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement