From b188c908c03c887810aca727c52ebf35dc54fb41 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 6 Mar 2021 14:43:33 +1000 Subject: [PATCH] Android: Add dividers between game directories --- .../github/stenzek/duckstation/GameDirectoriesActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/app/src/main/java/com/github/stenzek/duckstation/GameDirectoriesActivity.java b/android/app/src/main/java/com/github/stenzek/duckstation/GameDirectoriesActivity.java index 098d3f1d7..7b8ad788c 100644 --- a/android/app/src/main/java/com/github/stenzek/duckstation/GameDirectoriesActivity.java +++ b/android/app/src/main/java/com/github/stenzek/duckstation/GameDirectoriesActivity.java @@ -32,6 +32,7 @@ import androidx.fragment.app.ListFragment; import androidx.preference.PreferenceFragmentCompat; import androidx.preference.PreferenceManager; import androidx.preference.PreferenceScreen; +import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import androidx.viewpager2.adapter.FragmentStateAdapter; @@ -207,6 +208,8 @@ public class GameDirectoriesActivity extends AppCompatActivity { mRecyclerView = findViewById(R.id.recycler_view); mRecyclerView.setAdapter(mDirectoryListAdapter); mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); + mRecyclerView.addItemDecoration(new DividerItemDecoration(mRecyclerView.getContext(), + DividerItemDecoration.VERTICAL)); findViewById(R.id.fab).setOnClickListener((v) -> startAddGameDirectory()); }