Search in sources :

Example 1 with PicturePrimaryTextHolder

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

the class TagAdapter method attachHolder.

@Override
protected void attachHolder(View view) {
    ImageView friendPicture = (ImageView) view.findViewById(R.id.picture);
    TextView friendName = (TextView) view.findViewById(R.id.primary_text);
    setHolder(view, new PicturePrimaryTextHolder(friendPicture, friendName));
}
Also used : PicturePrimaryTextHolder(com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder) TextView(android.widget.TextView) ImageView(android.widget.ImageView)

Example 2 with PicturePrimaryTextHolder

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

the class FriendListAdapter method mergeViewWithData.

@Override
protected void mergeViewWithData(View view, GraphObject data) {
    super.mergeViewWithData(view, data);
    PicturePrimaryTextHolder holder = (PicturePrimaryTextHolder) getHolder(view);
    FriendList friendList = (FriendList) data;
    holder.getPrimaryText().setText(friendList.getName());
}
Also used : FriendList(com.abewy.android.apps.klyph.core.fql.FriendList) PicturePrimaryTextHolder(com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder)

Example 3 with PicturePrimaryTextHolder

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

the class FriendAdapter method attachHolder.

@Override
protected void attachHolder(View view) {
    ImageView friendPicture = (ImageView) view.findViewById(R.id.picture);
    TextView friendName = (TextView) view.findViewById(R.id.primary_text);
    setHolder(view, new PicturePrimaryTextHolder(friendPicture, friendName));
}
Also used : PicturePrimaryTextHolder(com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder) TextView(android.widget.TextView) ImageView(android.widget.ImageView)

Example 4 with PicturePrimaryTextHolder

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

the class TagAdapter method mergeViewWithData.

@Override
protected void mergeViewWithData(View view, GraphObject data) {
    super.mergeViewWithData(view, data);
    PicturePrimaryTextHolder holder = (PicturePrimaryTextHolder) getHolder(view);
    // holder.getPicture().setImageDrawable(null);
    Tag tag = (Tag) data;
    holder.getPrimaryText().setText(tag.getName());
    String url = FacebookUtil.getImageURLForId(tag.getId());
    loadImage(holder.getPicture(), url, AttrUtil.getResourceId(getContext(view), R.attr.squarePlaceHolderIcon), data);
}
Also used : PicturePrimaryTextHolder(com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder) Tag(com.abewy.android.apps.klyph.core.fql.Tag)

Example 5 with PicturePrimaryTextHolder

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

the class FriendListAdapter method attachHolder.

@Override
protected void attachHolder(View view) {
    TextView friendListName = (TextView) view.findViewById(android.R.id.text1);
    setHolder(view, new PicturePrimaryTextHolder(null, friendListName));
}
Also used : PicturePrimaryTextHolder(com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder) TextView(android.widget.TextView)

Aggregations

PicturePrimaryTextHolder (com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder)6 TextView (android.widget.TextView)3 ImageView (android.widget.ImageView)2 Friend (com.abewy.android.apps.klyph.core.fql.Friend)1 FriendList (com.abewy.android.apps.klyph.core.fql.FriendList)1 Tag (com.abewy.android.apps.klyph.core.fql.Tag)1