Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public void Generate_tour_plan(String mark, OnClickListener o) {
  2. parent_view = (LinearLayout) rootView
  3. .findViewById(R.id.tour_iternary_wrapper);
  4. hiddenInfo1 = getActivity().getLayoutInflater().inflate(
  5. R.layout.tour_plan, null, false);
  6. Button minus = (Button) hiddenInfo1.findViewById(R.id.plus);
  7. minus.setText(mark);
  8. CustomAutoCompleteTextView dealer_search = (CustomAutoCompleteTextView) hiddenInfo1
  9. .findViewById(R.id.account_code);
  10. CustomAutoCompleteTextView town_search = (CustomAutoCompleteTextView) hiddenInfo1
  11. .findViewById(R.id.town);
  12. town_search.setAdapter(city_adapter);
  13. dealer_search.setAdapter(adapter);
  14. minus.setOnClickListener(o);
  15.  
  16. parent_view.addView(hiddenInfo1, 0);
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement