Search in sources :

Example 1 with StreamStatus

use of com.abewy.android.apps.klyph.adapter.subAdapter.StreamStatus 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);
}
Also used : StreamButtonBar(com.abewy.android.apps.klyph.adapter.subAdapter.StreamButtonBar) StreamPhoto(com.abewy.android.apps.klyph.adapter.subAdapter.StreamPhoto) Stream(com.abewy.android.apps.klyph.core.fql.Stream) StreamStatus(com.abewy.android.apps.klyph.adapter.subAdapter.StreamStatus) StreamLink(com.abewy.android.apps.klyph.adapter.subAdapter.StreamLink) StreamHolder(com.abewy.android.apps.klyph.adapter.holder.StreamHolder)

Example 2 with StreamStatus

use of com.abewy.android.apps.klyph.adapter.subAdapter.StreamStatus 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);
}
Also used : StreamButtonBar(com.abewy.android.apps.klyph.adapter.subAdapter.StreamButtonBar) StreamPhoto(com.abewy.android.apps.klyph.adapter.subAdapter.StreamPhoto) StreamStatus(com.abewy.android.apps.klyph.adapter.subAdapter.StreamStatus) StreamLink(com.abewy.android.apps.klyph.adapter.subAdapter.StreamLink) StreamHolder(com.abewy.android.apps.klyph.adapter.holder.StreamHolder)

Aggregations

StreamHolder (com.abewy.android.apps.klyph.adapter.holder.StreamHolder)2 StreamButtonBar (com.abewy.android.apps.klyph.adapter.subAdapter.StreamButtonBar)2 StreamLink (com.abewy.android.apps.klyph.adapter.subAdapter.StreamLink)2 StreamPhoto (com.abewy.android.apps.klyph.adapter.subAdapter.StreamPhoto)2 StreamStatus (com.abewy.android.apps.klyph.adapter.subAdapter.StreamStatus)2 Stream (com.abewy.android.apps.klyph.core.fql.Stream)1