[Solved] Full example or tutorial about how to get Context from data binding android [closed]
The best way to format date and time is with String formatting. For example, you can use this: <TextView android:text=”@{@string/dateFormat(user.birthday)}” …/> Where the dateFormat is a resource like this: <string name=”dateFormat”>%1$td/%1$tm/%1$tY</string> And the birthday is a long. You should look at the date formatter documentation for more formatting information related to time and date. In … Read more