public View getTabView(int position) {
// Given you have a custom layout in `res/layout/custom_tab.xml` with a TextView and ImageView
@SuppressLint("InflateParams") View view = LayoutInflater.from(mContext).inflate(R.layout.grd_calendar_dialog_item, null);
ButterKnife.bind(this, view);
long currentDate = 0;
for (Map.Entry<Integer, Long> entry : countMapping.entrySet()) {
if (entry.getKey() == position) {
currentDate = entry.getValue();
}
}
dateText.setText(DateTimeFormat.forPattern("MMM dd\nEEE").print(new DateTime(currentDate)));
return view;
}
GridDialogCalendarAdapter.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:Android-Scrapper
作者:
评论列表
文章目录