Search in sources :

Example 31 with UserBean

use of org.qii.weiciyuan.bean.UserBean in project weiciyuan by qii.

the class TimeLineUtility method addJustHighLightLinksOnlyReplyComment.

private static void addJustHighLightLinksOnlyReplyComment(CommentBean bean) {
    String name = "";
    UserBean reUser = bean.getUser();
    if (reUser != null) {
        name = reUser.getScreen_name();
    }
    SpannableString value;
    if (!TextUtils.isEmpty(name)) {
        value = TimeLineUtility.convertNormalStringToSpannableString("@" + name + ":" + bean.getText());
    } else {
        value = TimeLineUtility.convertNormalStringToSpannableString(bean.getText());
    }
    bean.setListViewSpannableString(value);
}
Also used : SpannableString(android.text.SpannableString) UserBean(org.qii.weiciyuan.bean.UserBean) DMUserBean(org.qii.weiciyuan.bean.DMUserBean) SpannableString(android.text.SpannableString)

Aggregations

UserBean (org.qii.weiciyuan.bean.UserBean)31 Gson (com.google.gson.Gson)9 JsonSyntaxException (com.google.gson.JsonSyntaxException)9 DMUserBean (org.qii.weiciyuan.bean.DMUserBean)8 HashMap (java.util.HashMap)7 MessageBean (org.qii.weiciyuan.bean.MessageBean)6 Drawable (android.graphics.drawable.Drawable)4 RelativeLayout (android.widget.RelativeLayout)4 AtUserBean (org.qii.weiciyuan.bean.AtUserBean)4 SearchUserBean (org.qii.weiciyuan.bean.SearchUserBean)4 Intent (android.content.Intent)3 SpannableString (android.text.SpannableString)3 CommentBean (org.qii.weiciyuan.bean.CommentBean)3 Cursor (android.database.Cursor)2 View (android.view.View)2 ListView (android.widget.ListView)2 ArrayList (java.util.ArrayList)2 AccountBean (org.qii.weiciyuan.bean.AccountBean)2 WriteReplyToCommentActivity (org.qii.weiciyuan.ui.send.WriteReplyToCommentActivity)2 PendingIntent (android.app.PendingIntent)1