Search in sources :

Example 1 with TextButtonItemHolder

use of com.abewy.android.apps.klyph.adapter.holder.TextButtonItemHolder in project Klyph by jonathangerbaud.

the class TextButtonItemAdapter method mergeViewWithData.

@Override
protected void mergeViewWithData(View view, GraphObject data) {
    TextButtonItemHolder holder = (TextButtonItemHolder) view.getTag();
    TextButtonItem item = (TextButtonItem) data;
    holder.getText().setText(item.getText());
    if (item.getButtonListener() != null) {
        holder.getButton().setOnClickListener(item.getButtonListener());
    }
}
Also used : TextButtonItem(com.abewy.klyph.items.TextButtonItem) TextButtonItemHolder(com.abewy.android.apps.klyph.adapter.holder.TextButtonItemHolder)

Aggregations

TextButtonItemHolder (com.abewy.android.apps.klyph.adapter.holder.TextButtonItemHolder)1 TextButtonItem (com.abewy.klyph.items.TextButtonItem)1