package com.quemb.qmbform.view;

import com.quemb.qmbform.R;
import com.quemb.qmbform.descriptor.RowDescriptor;
import com.quemb.qmbform.descriptor.Value;

import android.content.Context;
import android.widget.TextView;

/**
 * Created by pmaccamp on 9/4/2015.
 */
public class FormDetailTextInlineFieldCell extends FormTitleFieldCell {

    private TextView mDetailTextView;

    public FormDetailTextInlineFieldCell(Context context,
                                         RowDescriptor rowDescriptor) {
        super(context, rowDescriptor);
    }

    @Override
    protected void init() {

        super.init();
        mDetailTextView = (TextView) findViewById(R.id.detailTextView);
        mDetailTextView.setTextAppearance(getContext(), R.style.TextAppearance_AppCompat_Body1);
    }

    @Override
    protected int getResource() {
        return R.layout.detail_text_inline_field_cell;
    }

    @Override
    protected void update() {
        super.update();

        if (getRowDescriptor().getHint(getContext()) != null) {
            getDetailTextView().setHint(getRowDescriptor().getHint(getContext()));
        }

        Value<?> value = getRowDescriptor().getValue();
        if (value != null && value.getValue() != null) {
            if (value.getValue() instanceof String) {
                getDetailTextView().setText((String) value.getValue());
            } else {
                getDetailTextView().setText(String.valueOf(value.getValue()));

            }
        }

    }

    public TextView getDetailTextView() {
        return mDetailTextView;
    }
}

@@ -683,24 +683,25 @@
 tView);%0A
+%0A
         
 mDetailT
@@ -684,32 +684,43 @@
 View);%0A%0A        
+setStyleId(
 mDetailTextView.
@@ -722,79 +722,74 @@
 View
-.setTextAppearance(getContext(), R.style.TextAppearance_AppCompat_Body1
+, CellDescriptor.APPEARANCE_TEXT_VALUE, CellDescriptor.COLOR_VALUE
 );%0A 

Update FormDetailTextInlineFieldCell.java