use of com.abewy.android.apps.klyph.adapter.subAdapter.StreamButtonBar in project Klyph by jonathangerbaud.
the class StreamAdapter2 method mergeViewWithData.
@Override
protected void mergeViewWithData(View view, GraphObject data) {
super.mergeViewWithData(view, data);
if (buttonBarAdapter == null)
buttonBarAdapter = new StreamButtonBar(parentAdapter, specialLayout);
if (photoAdapter == null)
photoAdapter = new StreamPhoto(parentAdapter, specialLayout);
if (linkAdapter == null)
linkAdapter = new StreamLink(parentAdapter, specialLayout);
if (statusAdapter == null)
statusAdapter = new StreamStatus(parentAdapter, specialLayout);
final StreamHolder holder = (StreamHolder) getHolder(view);
setData(view, data);
final Stream stream = (Stream) data;
setData(holder, stream);
}
use of com.abewy.android.apps.klyph.adapter.subAdapter.StreamButtonBar in project Klyph by jonathangerbaud.
the class StreamAdapter method mergeViewWithData.
@Override
protected void mergeViewWithData(View view, GraphObject data) {
// GraphObject previousData = getData(view);
/*if (previousData != null)
{
if (((Stream) previousData).getPost_id().equals(((Stream) data).getPost_id()))
{
return;
}
}*/
super.mergeViewWithData(view, data);
// getParentAdapter() = null on constructor
if (buttonBarAdapter == null)
buttonBarAdapter = new StreamButtonBar(parentAdapter, specialLayout);
if (photoAdapter == null)
photoAdapter = new StreamPhoto(parentAdapter, specialLayout);
if (linkAdapter == null)
linkAdapter = new StreamLink(parentAdapter, specialLayout);
if (statusAdapter == null)
statusAdapter = new StreamStatus(parentAdapter, specialLayout);
final StreamHolder holder = (StreamHolder) getHolder(view);
setData(view, data);
setData(view, holder, (Stream) data);
}
Aggregations