我需要在图像上传操作启动到数据库时在我的用户界面中设置当前日期。我在Adapter上的上传按钮代码和片段上的方法。我怎样才能调用代码?再一次,我只需要在我的应用程序中显示当前日期。谢谢如何在TextView中设置当前日期
public MyViewHolder(View view) {
super(view);
input_tgl = (TextView) view.findViewById(R.id.input_tgl_terima);
String dateApp = new SimpleDateFormat("dd-MMM-yyyy").format(new Date());
final String strDateApp = dateApp.replaceAll("-", " ");