]> git.ktnx.net Git - mobile-ledger.git/commitdiff
profile list: add divider decoration
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 10 Jan 2019 19:46:59 +0000 (19:46 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 10 Jan 2019 19:46:59 +0000 (19:46 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java

index 3e4f14b2d37fd3f7cc76a8ab58bb542eefa23a72..66288d525256456c2a82185bf73a15d44a070263 100644 (file)
@@ -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