Search in sources :

Example 1 with TitleTextItemHolder

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

the class TitleTextItemAdapter method mergeViewWithData.

@Override
protected void mergeViewWithData(View view, GraphObject data) {
    TitleTextItemHolder holder = (TitleTextItemHolder) view.getTag();
    TitleTextItem item = (TitleTextItem) data;
    holder.getTitle().setText(item.getTitle());
    holder.getText().setAutoLinkMask(Linkify.ALL);
    holder.getText().setText(item.getText());
    holder.getShadow().setVisibility(item.getShadow() == true ? View.VISIBLE : View.GONE);
}
Also used : TitleTextItem(com.abewy.klyph.items.TitleTextItem) TitleTextItemHolder(com.abewy.android.apps.klyph.adapter.holder.TitleTextItemHolder)

Aggregations

TitleTextItemHolder (com.abewy.android.apps.klyph.adapter.holder.TitleTextItemHolder)1 TitleTextItem (com.abewy.klyph.items.TitleTextItem)1