From d7d979d53ef0aa241627e608143984b96f84d3c9 Mon Sep 17 00:00:00 2001 From: Thodoris1999 Date: Thu, 4 Oct 2018 22:08:27 +0300 Subject: [PATCH] minor improvements --- .../main/shoutbox/ShoutboxFragment.java | 4 +++- app/src/main/res/layout/activity_main.xml | 3 ++- app/src/main/res/layout/fragment_shoutbox.xml | 24 ++++++++++++------- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/main/shoutbox/ShoutboxFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/main/shoutbox/ShoutboxFragment.java index 7692342c..8b4180a8 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/main/shoutbox/ShoutboxFragment.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/main/shoutbox/ShoutboxFragment.java @@ -61,7 +61,9 @@ public class ShoutboxFragment extends BaseFragment { shouts = new ArrayList<>(); shoutAdapter = new ShoutAdapter(getContext(), shouts); recyclerView.setAdapter(shoutAdapter); - recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); + LinearLayoutManager layoutManager = new LinearLayoutManager(getContext()); + layoutManager.setReverseLayout(true); + recyclerView.setLayoutManager(layoutManager); shoutboxTask = new ShoutboxTask(this::onShoutboxTaskSarted, this::onShoutboxTaskFinished); shoutboxTask.execute("https://www.thmmy.gr/smf/index.php?"); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index ae7ca535..c823abbc 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -19,7 +19,8 @@ + android:layout_height="wrap_content" + android:layout_above="@+id/main_bottom_navigation"/> + + - + android:layout_height="wrap_content" + android:layout_below="@id/swiperefresh"/> \ No newline at end of file