155
155
// Instantiating an adapter to store each items
156
156
ListAdapter adapter = new SimpleAdapter(getActivity().getBaseContext(), aList,
157
157
R.layout.fragment_service_list, from, to) {
158
159
public View getView(int position, View convertView, ViewGroup parent) {
159
161
View view = super.getView(position, convertView, parent);
160
164
TextView text1 = (TextView) view.findViewById(R.id.serviceListText);
161
165
text1.setTextSize(TypedValue.COMPLEX_UNIT_SP, size);
162
168
if (selected == position) {
163
169
text1.setTextColor(Color.parseColor("#000000"));
164
170
text1.setTypeface(null, Typeface.BOLD_ITALIC);
166
172
text1.setTypeface(null, Typeface.NORMAL);
173
181
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);