本文整理汇总了Java中com.github.curioustechizen.ago.RelativeTimeTextView类的典型用法代码示例。如果您正苦于以下问题:Java RelativeTimeTextView类的具体用法?Java RelativeTimeTextView怎么用?Java RelativeTimeTextView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RelativeTimeTextView类属于com.github.curioustechizen.ago包,在下文中一共展示了RelativeTimeTextView类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getView
import com.github.curioustechizen.ago.RelativeTimeTextView; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
Holder holder;
View view = convertView;
if (view == null) {
view = LayoutInflater.from(context).inflate(layoutResId, parent, false);
holder = new Holder();
holder.title = (TextView) view.findViewById(R.id.record_item_title);
holder.time = (RelativeTimeTextView) view.findViewById(R.id.record_item_time);
holder.url = (TextView) view.findViewById(R.id.record_item_url);
view.setTag(holder);
} else {
holder = (Holder) view.getTag();
}
Record record = list.get(position);
holder.title.setText(record.getTitle());
holder.time.setReferenceTime(record.getTime());
holder.url.setText(record.getURL());
return view;
}
开发者ID:mthli,项目名称:Ninja,代码行数:24,代码来源:RecordAdapter.java
示例2: MyViewHolder
import com.github.curioustechizen.ago.RelativeTimeTextView; //导入依赖的package包/类
public MyViewHolder(View view) {
super(view);
ll_messageSent = (LinearLayout)view.findViewById(R.id.messageSent);
ll_messageGot = (LinearLayout)view.findViewById(R.id.messageGot);
tv_sent_string = (TextView)view.findViewById(R.id.sent_string);
tv_got_string = (TextView)view.findViewById(R.id.got_string);
rtv_got_date = (RelativeTimeTextView)view.findViewById(R.id.got_date);
rtv_sent_date = (RelativeTimeTextView)view.findViewById(R.id.sent_date);
}
开发者ID:Asutosh11,项目名称:CustomerSupportChat,代码行数:13,代码来源:ChatAdapter.java
示例3: TicketViewHolder
import com.github.curioustechizen.ago.RelativeTimeTextView; //导入依赖的package包/类
TicketViewHolder(View v) {
super(v);
ticket = v.findViewById(R.id.ticket);
roundedImageViewProfilePic = (RoundedImageView) v.findViewById(R.id.imageView_default_profile);
textViewTicketID = (TextView) v.findViewById(R.id.textView_ticket_id);
textViewTicketNumber = (TextView) v.findViewById(R.id.textView_ticket_number);
textViewClientName = (TextView) v.findViewById(R.id.textView_client_name);
textViewSubject = (TextView) v.findViewById(R.id.textView_ticket_subject);
textViewTime = (RelativeTimeTextView) v.findViewById(R.id.textView_ticket_time);
textViewNewNotification = (TextView) v.findViewById(R.id.textView_ticket_bubble);
}
开发者ID:ladybirdweb,项目名称:faveo-helpdesk-android-app,代码行数:12,代码来源:TicketOverviewAdapter.java
示例4: TicketViewHolder
import com.github.curioustechizen.ago.RelativeTimeTextView; //导入依赖的package包/类
TicketViewHolder(View v) {
super(v);
thread = v.findViewById(R.id.thread);
roundedImageViewProfilePic = (RoundedImageView) v.findViewById(R.id.imageView_default_profile);
textViewClientName = (TextView) v.findViewById(R.id.textView_client_name);
textViewMessageTime = (RelativeTimeTextView) v.findViewById(R.id.textView_ticket_time);
textViewMessageTitle = (TextView) v.findViewById(R.id.textView_client_message_title);
// textViewMessage = (TextView) v.findViewById(R.id.textView_client_message_body);
textViewType = (TextView) v.findViewById(R.id.textView_type);
webView = (WebView) v.findViewById(R.id.webView);
}
开发者ID:ladybirdweb,项目名称:faveo-helpdesk-android-app,代码行数:12,代码来源:TicketThreadAdapter.java
示例5: getView
import com.github.curioustechizen.ago.RelativeTimeTextView; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup viewGroup) {
View view = convertView;
Holder holder;
if (view == null) {
view = LayoutInflater.from(context).inflate(layoutResId, viewGroup, false);
holder = new Holder();
holder.icon = (ImageView) view.findViewById(R.id.crash_item_icon);
holder.title = (TextView) view.findViewById(R.id.crash_item_title);
holder.time = (RelativeTimeTextView) view.findViewById(R.id.crash_item_time);
holder.content = (TextView) view.findViewById(R.id.crash_item_content);
view.setTag(holder);
} else {
holder = (Holder) view.getTag();
}
CrashItem item = list.get(position);
holder.icon.setImageDrawable(CrashUnit.getAppIcon(context, item.getPackageName()));
holder.title.setText(CrashUnit.getAppName(context, item.getPackageName()));
holder.time.setReferenceTime(item.getTime());
holder.content.setText(item.getContent());
return view;
}
开发者ID:mthli,项目名称:Cracker,代码行数:29,代码来源:CrashAdapter.java
示例6: ViewHolder
import com.github.curioustechizen.ago.RelativeTimeTextView; //导入依赖的package包/类
public ViewHolder(View v) {
super(v);
mTextView = (TextView) v.findViewById(R.id.nameText);
userImage = (CircularImageView)v.findViewById(R.id.userImage);
timeStamp = (RelativeTimeTextView)v.findViewById(R.id.timestamp);
author = (TextView)v.findViewById(R.id.author);
//Or just use Butterknife!
quote = (TextView) v.findViewById(R.id.quoteText);
convertView = v;
Typeface typeLight = Typeface.createFromAsset(con.getAssets(),"Geomanist-Regular.otf");
mTextView.setTypeface(typeLight);
author.setTypeface(typeLight);
author.setTypeface(typeLight);
quote.setTypeface(typeLight);
}
开发者ID:CompetentGroove,项目名称:quoteit_android,代码行数:23,代码来源:MyAdapter.java
注:本文中的com.github.curioustechizen.ago.RelativeTimeTextView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论