本文整理匯總了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());
}
示例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());
}
示例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;
}
示例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;
}