Android Date in ActionBar -


i making actionbar in android development. , want put in actionbar dateformat code :

android.text.format.dateformat.format("yyyy-mm-dd hh:mm:ss", new java.util.date()); 

how can put dateformat in actionbar?

you have use settitle(), actionbar.

actionbar actionbar = getactionbar(); string datestring = android.text.format.dateformat.format("yyyy-mm-dd hh:mm:ss", new java.util.date()); actionbar.settitle(datestring); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -