I am developing an application where I need to show the date and time in a TextView . How to implement this?
Is it necessary to implement the concept in an XML file or in a java file?
My XML file contains a TextView , for example:
<TextView android:id="@+id/DATE" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="" android:gravity="center" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="30dp" />
What steps should I take?
Guide me
user1624465
source share