X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2FTransactionListAdapter.java;h=e69aab7bf44ffaf728e226cefd265740a7986a8d;hp=0eb5e137cfbcfda1b3d0cb215b600da072f32c3f;hb=db8318b8cf3f8f0390e6da2cb1214546811d4388;hpb=954c149ae29dcdb0335f3760680daf050fac601f diff --git a/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java b/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java index 0eb5e137..e69aab7b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java @@ -77,7 +77,7 @@ class TransactionListAdapter accAmount = new TextView(ctx); LinearLayout.LayoutParams llp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, - LinearLayout.LayoutParams.WRAP_CONTENT, 1f); + LinearLayout.LayoutParams.WRAP_CONTENT); llp.setMarginEnd(0); accAmount.setLayoutParams(llp); accAmount.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_END); @@ -125,7 +125,7 @@ class TransactionListAdapter ConstraintLayout row; public TransactionRowHolder(@NonNull View itemView) { super(itemView); - this.row = (ConstraintLayout) itemView; + this.row = itemView.findViewById(R.id.transaction_row); this.tvDescription = itemView.findViewById(R.id.transaction_row_description); this.tvDate = itemView.findViewById(R.id.transaction_row_date); this.tableAccounts = itemView.findViewById(R.id.transaction_row_acc_amounts);