A transaction has one category, so logging stays quick and simple. If a purchase has parts in different categories, create a transaction for each part.
To split a bill between several people, use Split a bill, in More › Tools (on a computer, in the sidebar).
