diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/GameGridActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/GameGridActivity.java index bd922ecbed..f4f4519b94 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/GameGridActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/GameGridActivity.java @@ -54,7 +54,8 @@ public final class GameGridActivity extends Activity //mRecyclerView.setHasFixedSize(true); // Specifying the LayoutManager determines how the RecyclerView arranges views. - RecyclerView.LayoutManager layoutManager = new GridLayoutManager(this, 4); + RecyclerView.LayoutManager layoutManager = new GridLayoutManager(this, + getResources().getInteger(R.integer.game_grid_columns)); recyclerView.setLayoutManager(layoutManager); recyclerView.addItemDecoration(new GameAdapter.SpacesItemDecoration(8)); diff --git a/Source/Android/app/src/main/res/values-w1000dp/integers.xml b/Source/Android/app/src/main/res/values-w1000dp/integers.xml new file mode 100644 index 0000000000..5cd4e24f38 --- /dev/null +++ b/Source/Android/app/src/main/res/values-w1000dp/integers.xml @@ -0,0 +1,4 @@ + + + 4 + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/values-w500dp/integers.xml b/Source/Android/app/src/main/res/values-w500dp/integers.xml new file mode 100644 index 0000000000..d2955c0ae3 --- /dev/null +++ b/Source/Android/app/src/main/res/values-w500dp/integers.xml @@ -0,0 +1,4 @@ + + + 2 + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/values-w750dp/integers.xml b/Source/Android/app/src/main/res/values-w750dp/integers.xml new file mode 100644 index 0000000000..f049d8b44e --- /dev/null +++ b/Source/Android/app/src/main/res/values-w750dp/integers.xml @@ -0,0 +1,4 @@ + + + 3 + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/values/integers.xml b/Source/Android/app/src/main/res/values/integers.xml new file mode 100644 index 0000000000..9ddac4cff1 --- /dev/null +++ b/Source/Android/app/src/main/res/values/integers.xml @@ -0,0 +1,4 @@ + + + 1 + \ No newline at end of file