Ljd*_*son 26 android date
实际上只是一个小问题,我想将当前年份放入我的应用程序的页脚.每个页脚都是一个TextView,可以在菜单屏幕上看到等等.有没有办法动态插入年份?
干杯,劳伦斯
Eri*_*ass 95
你可以这样做:
Calendar calendar = Calendar.getInstance(); int year = calendar.get(Calendar.YEAR); TextView footer = findViewById(R.id.footer); footer.setText("" + year);
归档时间:
15 年,7 月 前
查看次数:
20868 次
最近记录:
7 年,3 月 前