Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TripleTab1 extends Fragment {
- private TextView nameAndNumberText;
- private Map<String, String> nameToNumberMapping;
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState){
- nameAndNumberText = (TextView) getActivity().findViewById(R.id.numberToNameView);
- nameToNumberMapping = ContactNameAndNumberUtility
- .getNameToPhoneNumberMapping(getActivity()
- .getApplicationContext());
- for (Map.Entry<String, String> item : nameToNumberMapping.entrySet()) {
- String key = item.getKey();
- String value = item.getValue();
- nameAndNumberText.append(key);
- nameAndNumberText.append(value);
- }
- return inflater.inflate(R.layout.assign_pattern_tab_1, container, false);
- }
- }
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState){
- View view =inflater.inflate(R.layout.assign_pattern_tab_1, container, false);
- nameAndNumberText = (TextView) view.findViewById(R.id.numberToNameView);
- nameToNumberMapping = ContactNameAndNumberUtility
- .getNameToPhoneNumberMapping(getActivity()
- .getApplicationContext());
- for (Map.Entry<String, String> item : nameToNumberMapping.entrySet()) {
- String key = item.getKey();
- String value = item.getValue();
- nameAndNumberText.append(key);
- nameAndNumberText.append(value);
- }
- return view;
Add Comment
Please, Sign In to add comment