how do i implement a basic timestamp in pull to refresh <p>I have implemented a pull to refresh and now trying to add a timestamp showing "Last updated: "time""(4:50/tuesday etc). I have implemented a method for the same:</p> <pre><code>public void setLastUpdated(CharSequence lastUpdated) { if (!TextUtils.isEmpty(lastUpdated)) { eikonLastUpdated.setVisibility(View.VISIBLE); eikonLastUpdated.setText(lastUpdated); } else { eikonLastUpdated.setVisibility(View.GONE); } } </code></pre> <p>Does anyone know how I can add the same to an XML, and how do I go about it, do I also have to add the same to java by calling <code>settext</code> method? example: </p> <pre><code>textView.setText("Last updated:"); </code></pre> <p>How do I call the <code>setlastupdated</code> method for the same?</p>