]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java
transaction list: make day/month markers more visible
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / transaction_list / TransactionListAdapter.java
index 6c245644d55db2742ca11d5ef7796c31a75d8461..573fd15c0c09ce9fffb62b60f2dbb9ba59aa65df 100644 (file)
@@ -81,11 +81,15 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
             if (item.isMonthShown()) {
                 holder.tvDelimiterMonth.setText(Globals.monthNames[date.getMonth()]);
                 holder.tvDelimiterMonth.setVisibility(View.VISIBLE);
-                holder.vDelimiterLine.setBackgroundResource(R.drawable.dashed_border_8dp);
+//                holder.vDelimiterLine.setBackgroundResource(R.drawable.dashed_border_8dp);
+                holder.vDelimiterLine.setVisibility(View.GONE);
+                holder.vDelimiterThick.setVisibility(View.VISIBLE);
             }
             else {
                 holder.tvDelimiterMonth.setVisibility(View.GONE);
-                holder.vDelimiterLine.setBackgroundResource(R.drawable.dashed_border_1dp);
+//                holder.vDelimiterLine.setBackgroundResource(R.drawable.dashed_border_1dp);
+                holder.vDelimiterLine.setVisibility(View.VISIBLE);
+                holder.vDelimiterThick.setVisibility(View.GONE);
             }
         }
     }
@@ -191,7 +195,9 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
 //                            acc.getAccountName(), acc.getAmount()));
 
                     String boldAccountName = step.getBoldAccountName();
-                    if ((boldAccountName != null) && boldAccountName.equals(acc.getAccountName())) {
+                    if ((boldAccountName != null) &&
+                        acc.getAccountName().startsWith(boldAccountName))
+                    {
                         accName.setTypeface(null, Typeface.BOLD);
                         accAmount.setTypeface(null, Typeface.BOLD);
                         accName.setTextColor(Globals.primaryDark);