From: Damyan Ivanov Date: Thu, 10 Jan 2019 19:46:59 +0000 (+0000) Subject: profile list: add divider decoration X-Git-Tag: v0.3~81 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=b072ee99c2d1c4e5edd13f633bdeef27c61b784e;p=mobile-ledger.git profile list: add divider decoration --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java index 3e4f14b2..66288d52 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java @@ -23,6 +23,7 @@ import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.support.v7.widget.helper.ItemTouchHelper; @@ -138,6 +139,8 @@ public class ProfileListActivity extends AppCompatActivity { } }; new ItemTouchHelper(cb).attachToRecyclerView(recyclerView); + recyclerView.addItemDecoration(new DividerItemDecoration(recyclerView.getContext(), + DividerItemDecoration.VERTICAL)); } public static class ProfilesRecyclerViewAdapter