Implemented displaying date below amount to spare left column

This commit is contained in:
dankito 2020-05-25 19:49:09 +02:00
parent bf541bfe80
commit 2ef8a03e95
2 changed files with 45 additions and 33 deletions

View File

@ -5,34 +5,23 @@
android:padding="@dimen/list_item_account_transaction_padding" android:padding="@dimen/list_item_account_transaction_padding"
> >
<TextView
android:id="@+id/txtvwBookingDate"
android:layout_width="@dimen/list_item_account_transaction_date_width"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:gravity="center_vertical"
/>
<LinearLayout <LinearLayout
android:orientation="vertical" android:orientation="vertical"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/txtvwBookingDate" android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true" android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/txtvwAmount" android:layout_alignParentBottom="true"
android:layout_toEndOf="@+id/txtvwBookingDate" android:layout_toLeftOf="@+id/lytAmountAndDate"
android:layout_toStartOf="@+id/txtvwAmount" android:layout_toStartOf="@+id/lytAmountAndDate"
android:layout_marginLeft="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right" android:layout_marginLeft="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right"
android:layout_marginStart="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right" android:layout_marginStart="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right"
android:layout_marginRight="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right" android:layout_marginRight="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right"
android:layout_marginEnd="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right" android:layout_marginEnd="@dimen/list_item_account_transaction_transaction_text_margin_left_and_right"
android:gravity="center_vertical" android:gravity="center_vertical"
> >
<TextView <TextView
android:id="@+id/txtvwBookingText" android:id="@+id/txtvwBookingText"
@ -64,15 +53,38 @@
</LinearLayout> </LinearLayout>
<TextView <RelativeLayout
android:id="@+id/lytAmountAndDate"
android:orientation="vertical"
android:layout_width="@dimen/list_item_account_transaction_amount_width"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:gravity="center_vertical"
>
<TextView
android:id="@+id/txtvwAmount" android:id="@+id/txtvwAmount"
android:layout_width="@dimen/list_item_account_transaction_amount_width" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true" android:gravity="end"
android:gravity="center_vertical|end"
/> />
<TextView
android:id="@+id/txtvwBookingDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_below="@+id/txtvwAmount"
android:layout_marginTop="@dimen/list_item_account_transaction_date_margin_top"
android:gravity="end"
/>
</RelativeLayout>
</RelativeLayout> </RelativeLayout>

View File

@ -16,8 +16,8 @@
<dimen name="list_item_account_transaction_height">100dp</dimen> <dimen name="list_item_account_transaction_height">100dp</dimen>
<dimen name="list_item_account_transaction_padding">4dp</dimen> <dimen name="list_item_account_transaction_padding">4dp</dimen>
<dimen name="list_item_account_transaction_date_width">60dp</dimen>
<dimen name="list_item_account_transaction_amount_width">70dp</dimen> <dimen name="list_item_account_transaction_amount_width">70dp</dimen>
<dimen name="list_item_account_transaction_date_margin_top">12dp</dimen>
<dimen name="list_item_account_transaction_transaction_text_margin_left_and_right">4dp</dimen> <dimen name="list_item_account_transaction_transaction_text_margin_left_and_right">4dp</dimen>
<dimen name="list_item_account_transaction_other_party_name_margin_top_and_bottom">6dp</dimen> <dimen name="list_item_account_transaction_other_party_name_margin_top_and_bottom">6dp</dimen>