Added divider between account transactions list items

This commit is contained in:
dankito 2020-09-09 16:21:12 +02:00
parent c5cace98df
commit 6af1820893
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class HomeFragment : Fragment() {
val rcyvwAccountTransactions: RecyclerView = root.findViewById(R.id.rcyvwAccountTransactions) val rcyvwAccountTransactions: RecyclerView = root.findViewById(R.id.rcyvwAccountTransactions)
rcyvwAccountTransactions.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false) rcyvwAccountTransactions.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
rcyvwAccountTransactions.adapter = transactionAdapter rcyvwAccountTransactions.adapter = transactionAdapter
rcyvwAccountTransactions.addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
registerForContextMenu(rcyvwAccountTransactions) // this is actually bad, splits code as context menu is created in AccountTransactionAdapter registerForContextMenu(rcyvwAccountTransactions) // this is actually bad, splits code as context menu is created in AccountTransactionAdapter