aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-05-10 12:54:31 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-05-10 12:54:31 -0600
commit793241fe47c09c63e2a2e5a4429deed8e7401754 (patch)
tree66c4660417b4cc472c34828f0de26a98403968ff /app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
parent2734f6777a6b7c439d9bc55c8756155721f76fa5 (diff)
downloadwiimmfi-watcher-793241fe47c09c63e2a2e5a4429deed8e7401754.tar
wiimmfi-watcher-793241fe47c09c63e2a2e5a4429deed8e7401754.tar.gz
wiimmfi-watcher-793241fe47c09c63e2a2e5a4429deed8e7401754.tar.bz2
added todo list file, app icon and implemented about fragment
Diffstat (limited to 'app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java')
-rw-r--r--app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
index 414519c..465cccf 100644
--- a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
+++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/WatchCodeFragment.java
@@ -84,7 +84,10 @@ public class WatchCodeFragment extends Fragment {
}
});
RecyclerView recyclerView = view.findViewById(R.id.recent_friend_codes_recycler_view);
- recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
+ LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext());
+ linearLayoutManager.setReverseLayout(true);
+ linearLayoutManager.setStackFromEnd(true);
+ recyclerView.setLayoutManager(linearLayoutManager);
recyclerView.setAdapter(adapter);
Button watchButton = view.findViewById(R.id.watch_button);
EditText friendCode = view.findViewById(R.id.friend_code_edit_text);