GridDialogCalendarAdapter.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:Android-Scrapper 作者:
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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号