Use ViewHolder pattern in adapter.

Signed-off-by: Mariusz Fik <fisiu@opensuse.org>