77 hogDice.add((ImageButton)team_creation_entry.findViewById(R.id.btnTeam1)); |
77 hogDice.add((ImageButton)team_creation_entry.findViewById(R.id.btnTeam1)); |
78 hogName.add((EditText)team_creation_entry.findViewById(R.id.txtTeam1)); |
78 hogName.add((EditText)team_creation_entry.findViewById(R.id.txtTeam1)); |
79 } |
79 } |
80 ArrayList<HashMap<String, ?>> gravesData = FrontendDataUtils.getGraves(this); |
80 ArrayList<HashMap<String, ?>> gravesData = FrontendDataUtils.getGraves(this); |
81 SimpleAdapter sa = new SimpleAdapter(this, gravesData, R.layout.spinner_textimg_entry, new String[]{"txt", "img"}, new int[]{R.id.spinner_txt, R.id.spinner_img}); |
81 SimpleAdapter sa = new SimpleAdapter(this, gravesData, R.layout.spinner_textimg_entry, new String[]{"txt", "img"}, new int[]{R.id.spinner_txt, R.id.spinner_img}); |
|
82 |
82 sa.setViewBinder(viewBinder); |
83 sa.setViewBinder(viewBinder); |
83 grave.setAdapter(sa); |
84 grave.setAdapter(sa); |
84 grave.setOnFocusChangeListener(focusser); |
85 grave.setOnFocusChangeListener(focusser); |
85 |
86 |
86 ArrayList<HashMap<String, ?>> flagsData = FrontendDataUtils.getFlags(this); |
87 ArrayList<HashMap<String, ?>> flagsData = FrontendDataUtils.getFlags(this); |
91 |
92 |
92 ArrayList<HashMap<String, ?>> typesData = FrontendDataUtils.getTypes(this); |
93 ArrayList<HashMap<String, ?>> typesData = FrontendDataUtils.getTypes(this); |
93 sa = new SimpleAdapter(this, typesData, R.layout.spinner_textimg_entry, new String[]{"txt", "img"}, new int[]{R.id.spinner_txt, R.id.spinner_img}); |
94 sa = new SimpleAdapter(this, typesData, R.layout.spinner_textimg_entry, new String[]{"txt", "img"}, new int[]{R.id.spinner_txt, R.id.spinner_img}); |
94 difficulty.setAdapter(sa); |
95 difficulty.setAdapter(sa); |
95 difficulty.setOnFocusChangeListener(focusser); |
96 difficulty.setOnFocusChangeListener(focusser); |
96 |
97 |
97 ArrayList<HashMap<String, ?>> hatsData = FrontendDataUtils.getHats(this); |
98 ArrayList<HashMap<String, ?>> hatsData = FrontendDataUtils.getHats(this); |
98 sa = new SimpleAdapter(this, hatsData, R.layout.spinner_textimg_entry, new String[]{"txt", "img"}, new int[]{R.id.spinner_txt, R.id.spinner_img}); |
99 sa = new SimpleAdapter(this, hatsData, R.layout.spinner_textimg_entry, new String[]{"txt", "img"}, new int[]{R.id.spinner_txt, R.id.spinner_img}); |
99 sa.setViewBinder(viewBinder); |
100 sa.setViewBinder(viewBinder); |
100 for(Spinner spin : hogHat){ |
101 for(Spinner spin : hogHat){ |
101 spin.setAdapter(sa); |
102 spin.setAdapter(sa); |
102 } |
103 } |
103 |
104 |
104 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, FrontendDataUtils.getVoices(this)); |
105 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.listview_item, FrontendDataUtils.getVoices(this)); |
105 voice.setAdapter(adapter); |
106 voice.setAdapter(adapter); |
106 voice.setOnFocusChangeListener(focusser); |
107 voice.setOnFocusChangeListener(focusser); |
107 voiceButton.setOnClickListener(voiceClicker); |
108 voiceButton.setOnClickListener(voiceClicker); |
108 |
109 |
109 adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, FrontendDataUtils.getForts(this)); |
110 adapter = new ArrayAdapter<String>(this, R.layout.listview_item, FrontendDataUtils.getForts(this)); |
110 fort.setAdapter(adapter); |
111 fort.setAdapter(adapter); |
111 fort.setOnItemSelectedListener(fortSelector); |
112 fort.setOnItemSelectedListener(fortSelector); |
112 fort.setOnFocusChangeListener(focusser); |
113 fort.setOnFocusChangeListener(focusser); |
113 |
114 |
114 Team t = this.getIntent().getParcelableExtra("team"); |
115 Team t = this.getIntent().getParcelableExtra("team"); |