// Path: app/src/main/java/com/github/mzule/androidweekly/ui/viewtype/SearchHistoryViewType.java
// @Layout(R.layout.item_search_history)
// public class SearchHistoryViewType extends BaseViewType<String> {
//     @Bind(R.id.textView)
//     TextView textView;
// 
//     @Override
//     public void onRender(int position, String data) {
//         textView.setText(data);
//     }
// }


import android.content.Context;
import com.github.mzule.androidweekly.ui.viewtype.SearchHistoryViewType;
import com.github.mzule.easyadapter.SingleTypeAdapter;
import com.github.mzule.easyadapter.ViewType;
package com.github.mzule.androidweekly.ui.adapter;



/**
 * Created by CaoDongping on 4/5/16.
 */
public class SearchHistoryAdapter extends SingleTypeAdapter<String> {
    public SearchHistoryAdapter(Context context) {
        super(context);
    }

    @Override
    protected Class<? extends ViewType> singleViewType() {
// Path: app/src/main/java/com/github/mzule/androidweekly/ui/viewtype/SearchHistoryViewType.java
// @Layout(R.layout.item_search_history)
// public class SearchHistoryViewType extends BaseViewType<String> {
//     @Bind(R.id.textView)
//     TextView textView;
// 
//     @Override
//     public void onRender(int position, String data) {
//         textView.setText(data);
//     }
// }


// Path: app/src/main/java/com/github/mzule/androidweekly/ui/adapter/SearchHistoryAdapter.java
import android.content.Context;
import com.github.mzule.androidweekly.ui.viewtype.SearchHistoryViewType;
import com.github.mzule.easyadapter.SingleTypeAdapter;
import com.github.mzule.easyadapter.ViewType;

package com.github.mzule.androidweekly.ui.adapter;



/**
 * Created by CaoDongping on 4/5/16.
 */
public class SearchHistoryAdapter extends SingleTypeAdapter<String> {
    public SearchHistoryAdapter(Context context) {
        super(context);
    }

    @Override
    protected Class<? extends ViewType> singleViewType() {
        return SearchHistoryViewType.class;