// Path: compass/src/main/gen/org/tndata/android/compass/R.java
// public final class R {
// }


import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.tndata.android.compass.R;
import org.tndata.compass.model.SearchResult;
import java.util.ArrayList;
import java.util.List;
        LayoutInflater inflater = LayoutInflater.from(mContext);
        return new ResultViewHolder(inflater.inflate(R.layout.item_search_result, parent, false));
    }

    @Override
    public void onBindViewHolder(ResultViewHolder holder, int position){
        holder.mTitle.setText(mDataSet.get(position).getTitle());
        String highlight = mDataSet.get(position).getHighlighted().replace("\n", "<br>");
        holder.mSummary.setText(Html.fromHtml(highlight));
    }


    /**
     * Holder for a search result interface.
     *
     * @author Ismael Alonso
     * @version 1.0.0
     */
    class ResultViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener{
        private TextView mTitle;
        private TextView mSummary;


        /**
         * Constructor.
         *
         * @param rootView the root view.
         */
        public ResultViewHolder(View rootView){
            super(rootView);
// Path: compass/src/main/gen/org/tndata/android/compass/R.java
// public final class R {
// }


// Path: compass/src/main/java/org/tndata/android/compass/adapter/SearchAdapter.java
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.tndata.android.compass.R;
import org.tndata.compass.model.SearchResult;
import java.util.ArrayList;
import java.util.List;

        LayoutInflater inflater = LayoutInflater.from(mContext);
        return new ResultViewHolder(inflater.inflate(R.layout.item_search_result, parent, false));
    }

    @Override
    public void onBindViewHolder(ResultViewHolder holder, int position){
        holder.mTitle.setText(mDataSet.get(position).getTitle());
        String highlight = mDataSet.get(position).getHighlighted().replace("\n", "<br>");
        holder.mSummary.setText(Html.fromHtml(highlight));
    }


    /**
     * Holder for a search result interface.
     *
     * @author Ismael Alonso
     * @version 1.0.0
     */
    class ResultViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener{
        private TextView mTitle;
        private TextView mSummary;


        /**
         * Constructor.
         *
         * @param rootView the root view.
         */
        public ResultViewHolder(View rootView){
            super(rootView);
            mTitle = (TextView)rootView.findViewById(R.id.search_result_title);