~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
-->
-<android.support.v7.widget.ContentFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
+ android:measureAllChildren="false"
android:layout_width="match_parent"
android:layout_height="wrap_content">
- <android.support.v7.widget.CardView
+ <androidx.cardview.widget.CardView
android:id="@+id/transaction_card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
- android:visibility="gone"
+ android:visibility="visible"
app:cardCornerRadius="16dp"
app:cardElevation="4dp"
- app:cardUseCompatPadding="false"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_goneMarginBottom="8dp">
+ app:cardUseCompatPadding="false">
- <android.support.constraint.ConstraintLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/transaction_row"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="5"
android:text="---."
- android:textStyle="bold"
+ android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
tools:ignore="HardcodedText" />
</LinearLayout>
- <LinearLayout
+ <View
android:id="@+id/transaction_row_header_border"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="2dp"
+ android:alpha="0.3"
android:background="@drawable/dashed_border_1dp"
- android:minHeight="2dp"
- android:orientation="horizontal"
+ android:height="2dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/transaction_row_head" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="8dp"
- android:paddingEnd="0dp">
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:text="---"
- android:textAlignment="viewStart"
- tools:ignore="HardcodedText" />
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="0dp"
- android:minWidth="60dp"
- android:text="€ --,--"
- android:textAlignment="viewEnd"
- tools:ignore="HardcodedText" />
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="8dp"
- android:paddingEnd="0dp">
-
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:text="---"
- android:textAlignment="viewStart"
- tools:ignore="HardcodedText" />
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="0dp"
- android:minWidth="60dp"
- android:text="---,--"
- android:textAlignment="viewEnd"
- tools:ignore="HardcodedText" />
- </LinearLayout>
+ <include layout="@layout/transaction_list_row_accounts_table_row"/>
+ <include layout="@layout/transaction_list_row_accounts_table_row"/>
+
</LinearLayout>
- </android.support.constraint.ConstraintLayout>
- </android.support.v7.widget.CardView>
+ </androidx.constraintlayout.widget.ConstraintLayout>
+ </androidx.cardview.widget.CardView>
- <android.support.constraint.ConstraintLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/transaction_delimiter"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
- android:layout_marginEnd="8dp"
- android:foregroundGravity="center_vertical"
- android:orientation="horizontal">
+ android:layout_marginEnd="8dp">
<TextView
android:id="@+id/transaction_delimiter_month"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:background="@color/colorPrimary"
+ android:background="?colorPrimary"
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:text="---------"
- android:textColor="@android:color/white"
+ android:textColor="?android:attr/colorBackground"
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:background="?colorPrimary"
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:text="--.--.----"
- android:textColor="@android:color/white"
+ android:textColor="?android:attr/colorBackground"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
tools:ignore="HardcodedText" />
android:layout_height="16dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
+ android:alpha="0.3"
android:background="@drawable/dashed_border_1dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
android:id="@+id/transaction_delimiter_thick"
android:layout_width="0dp"
android:layout_height="0dp"
- android:background="@color/colorPrimary"
+ android:background="?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>
+ </androidx.constraintlayout.widget.ConstraintLayout>
- <view
- android:id="@+id/transaction_list_trailer"
- class="android.support.constraint.Placeholder"
- id="@+id/view"
- android:layout_width="match_parent"
- android:layout_height="80dp" />
-</android.support.v7.widget.ContentFrameLayout>
\ No newline at end of file
+</FrameLayout>
\ No newline at end of file