Code example for Switch

            mAuthHelper = authenticatorHelper;
            mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            // Temp Switches provided as placeholder until the adapter replaces these with actual 
            // Switches inflated from their layouts. Must be done before adapter is set in super 
            mTRDSEnabler = new TRDSEnabler(context, new Switch(context));
            mThemeStatus = new ThemeStatus(context, new TextView(context));
        public View getView(int position, View convertView, ViewGroup parent) {
            HeaderViewHolder holder;
            Header header = getItem(position);
            int headerType = getHeaderType(header);
            View view = null;
            if (convertView == null || headerType == HEADER_TYPE_SWITCH) {
                holder = new HeaderViewHolder();
                switch (headerType) {
                    case HEADER_TYPE_CATEGORY:
                        view = new TextView(getContext(), null,