當前位置: 首頁>>代碼示例>>Java>>正文


Java DribbbleUtils類代碼示例

本文整理匯總了Java中io.plaidapp.util.DribbbleUtils的典型用法代碼示例。如果您正苦於以下問題:Java DribbbleUtils類的具體用法?Java DribbbleUtils怎麽用?Java DribbbleUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DribbbleUtils類屬於io.plaidapp.util包,在下文中一共展示了DribbbleUtils類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: bindPlayer

import io.plaidapp.util.DribbbleUtils; //導入依賴的package包/類
private void bindPlayer(PlayerViewHolder holder, T player) {
    Glide.with(holder.itemView.getContext())
            .load(player.getPlayer().getHighQualityAvatarUrl())
            .transform(circleTransform)
            .placeholder(R.drawable.avatar_placeholder)
            .override(largeAvatarSize, largeAvatarSize)
            .into(holder.playerAvatar);
    holder.playerName.setText(player.getPlayer().name.toLowerCase());
    if (!TextUtils.isEmpty(player.getPlayer().bio)) {
        DribbbleUtils.parseAndSetText(holder.playerBio, player.getPlayer().bio);
    } else if (!TextUtils.isEmpty(player.getPlayer().location)) {
        holder.playerBio.setText(player.getPlayer().location);
    }
    holder.timeAgo.setText(
            DateUtils.getRelativeTimeSpanString(player.getDateCreated().getTime(),
                    System.currentTimeMillis(),
                    DateUtils.SECOND_IN_MILLIS)
                    .toString().toLowerCase());
}
 
開發者ID:liulinbo,項目名稱:Amumu,代碼行數:20,代碼來源:PlayerSheet.java

示例2: bindPlayer

import io.plaidapp.util.DribbbleUtils; //導入依賴的package包/類
private void bindPlayer(PlayerViewHolder holder, T player) {
    GlideApp.with(holder.itemView.getContext())
            .load(player.getPlayer().getHighQualityAvatarUrl())
            .circleCrop()
            .placeholder(R.drawable.avatar_placeholder)
            .override(largeAvatarSize, largeAvatarSize)
            .transition(withCrossFade())
            .into(holder.playerAvatar);
    holder.playerName.setText(player.getPlayer().name.toLowerCase());
    if (!TextUtils.isEmpty(player.getPlayer().bio)) {
        DribbbleUtils.parseAndSetText(holder.playerBio, player.getPlayer().bio);
    } else if (!TextUtils.isEmpty(player.getPlayer().location)) {
        holder.playerBio.setText(player.getPlayer().location);
    }
    holder.timeAgo.setText(
            DateUtils.getRelativeTimeSpanString(player.getDateCreated().getTime(),
                    System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS)
                    .toString().toLowerCase());
}
 
開發者ID:nickbutcher,項目名稱:plaid,代碼行數:20,代碼來源:PlayerSheet.java

示例3: getParsedDescription

import io.plaidapp.util.DribbbleUtils; //導入依賴的package包/類
public Spanned getParsedDescription(ColorStateList linkTextColor,
                                    @ColorInt int linkHighlightColor) {
    if (parsedDescription == null && !TextUtils.isEmpty(description)) {
        parsedDescription = DribbbleUtils.parseDribbbleHtml(description, linkTextColor,
                linkHighlightColor);
    }
    return parsedDescription;
}
 
開發者ID:liulinbo,項目名稱:Amumu,代碼行數:9,代碼來源:Shot.java

示例4: getParsedBody

import io.plaidapp.util.DribbbleUtils; //導入依賴的package包/類
public Spanned getParsedBody(TextView textView) {
    if (parsedBody == null && !TextUtils.isEmpty(body)) {
        parsedBody = DribbbleUtils.parseDribbbleHtml(body, textView.getLinkTextColors(),
                textView.getHighlightColor());
    }
    return parsedBody;
}
 
開發者ID:liulinbo,項目名稱:Amumu,代碼行數:8,代碼來源:Comment.java


注:本文中的io.plaidapp.util.DribbbleUtils類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。