diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsListFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsListFragment.java index 0816571..c3b88a2 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsListFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/PostsListFragment.java @@ -7,6 +7,7 @@ import android.content.DialogInterface; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.Nullable; +import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayoutManager; import android.util.ArrayMap; import android.util.Pair; @@ -176,6 +177,8 @@ public class PostsListFragment extends Fragment //Get the list view mRecyclerView = view.findViewById(R.id.posts_list); mRecyclerView.setOnScrollChangeDetectListener(this); + mRecyclerView.addItemDecoration(new DividerItemDecoration(mRecyclerView.getContext(), + DividerItemDecoration.VERTICAL)); //Show the posts show(); diff --git a/app/src/main/res/layout/post_item.xml b/app/src/main/res/layout/post_item.xml index 12e734c..275ac76 100644 --- a/app/src/main/res/layout/post_item.xml +++ b/app/src/main/res/layout/post_item.xml @@ -56,6 +56,7 @@ style="@style/PostVisibility" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="top" tools:text="Public" /> + android:layout_gravity="top" + android:contentDescription="@string/post_action_btn_description" /> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 99371db..693db7d 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -82,6 +82,9 @@