diff --git a/CHANGELOG.md b/CHANGELOG.md index 9feb755..1c1c362 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +**master** + +- Fixing list view displaying issues. + **1.5.4.15** - Fixed an issue with the sources list. diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt index b0d18fc..30896e0 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -11,10 +11,7 @@ import android.os.Bundle import android.preference.PreferenceManager import android.support.v4.view.MenuItemCompat import android.support.v7.app.AppCompatActivity -import android.support.v7.widget.GridLayoutManager -import android.support.v7.widget.RecyclerView -import android.support.v7.widget.SearchView -import android.support.v7.widget.StaggeredGridLayoutManager +import android.support.v7.widget.* import android.support.v7.widget.helper.ItemTouchHelper import android.view.Menu import android.view.MenuItem @@ -759,6 +756,9 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { articleViewer, debugReadingItems, userIdentifier) + + recyclerView.addItemDecoration(DividerItemDecoration(this@HomeActivity, + DividerItemDecoration.VERTICAL)) } recyclerView.adapter = mAdapter mAdapter.notifyDataSetChanged() diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml index 8547774..b3c5d5a 100644 --- a/app/src/main/res/layout/list_item.xml +++ b/app/src/main/res/layout/list_item.xml @@ -1,55 +1,66 @@ - + + + + app:layout_constraintBottom_toTopOf="@+id/guideline4" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textSize="14sp" + app:layout_constraintBottom_toTopOf="@+id/guideline4" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.0" + app:layout_constraintStart_toEndOf="@+id/itemImage" + tools:text="Google Actualité Il y a 5h" /> + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="@+id/guideline4" + app:layout_constraintVertical_bias="1.0" + tools:visibility="visible"> + - \ No newline at end of file