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);
}
}
}
ConstraintLayout vDelimiter;
CardView vTransaction;
TextView tvDelimiterMonth, tvDelimiterDate;
- View vDelimiterLine;
+ View vDelimiterLine, vDelimiterThick;
public TransactionRowHolder(@NonNull View itemView) {
super(itemView);
this.row = itemView.findViewById(R.id.transaction_row);
this.tvDelimiterDate = itemView.findViewById(R.id.transaction_delimiter_date);
this.tvDelimiterMonth = itemView.findViewById(R.id.transaction_delimiter_month);
this.vDelimiterLine = itemView.findViewById(R.id.transaction_delimiter_line);
+ this.vDelimiterThick = itemView.findViewById(R.id.transaction_delimiter_thick);
}
}
android:id="@+id/transaction_delimiter_month"
android:layout_width="wrap_content"
android:layout_height="match_parent"
+ android:background="@color/colorPrimary"
+ android:paddingStart="4dp"
+ android:paddingEnd="4dp"
android:text="---------"
- android:textColor="@color/header_border"
+ android:textColor="@android:color/white"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
tools:ignore="HardcodedText" />
android:id="@+id/transaction_delimiter_date"
android:layout_width="wrap_content"
android:layout_height="match_parent"
+ android:background="@color/colorPrimary"
+ android:paddingStart="4dp"
+ android:paddingEnd="4dp"
android:text="--.--.----"
- android:textColor="@color/header_border"
+ android:textColor="@android:color/white"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
tools:ignore="HardcodedText" />
<View
android:id="@+id/transaction_delimiter_line"
android:layout_width="0dp"
- android:layout_height="0dp"
+ android:layout_height="16dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:background="@drawable/dashed_border_1dp"
app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
app:layout_constraintTop_toTopOf="parent" />
+ <View
+ android:id="@+id/transaction_delimiter_thick"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:background="@color/colorPrimary"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
+ app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
+ app:layout_constraintTop_toTopOf="parent" />
+
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.ContentFrameLayout>
\ No newline at end of file