Skip to content

Instantly share code, notes, and snippets.

@ibrahimyilmaz
Last active August 22, 2020 10:57
Show Gist options
  • Save ibrahimyilmaz/ec8021a9209c02f3b97a84ab071e56d9 to your computer and use it in GitHub Desktop.
Save ibrahimyilmaz/ec8021a9209c02f3b97a84ab071e56d9 to your computer and use it in GitHub Desktop.
public final class TransactionUtils {
public static void getTransactionWithFormattedTime(Transaction transaction) {
String oldTransationTime = transaction.getTransactionTime();
transaction.setTransactionTime(SomeFormattings!!!) ;
}
}
//Lets say we are in the ViewHolder of a RecyclerView.Adapter
public void onBindViewHolder(...){
TransactionUtils.getTransactionWithFormattedTime(transaction);
transactionTime.setText(transaction.getTransactionTime());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment