Fix discover icon not showing

This commit is contained in:
Matthieu 2021-03-15 19:01:43 +01:00
parent ad39fdb9f6
commit 29906a355b
4 changed files with 14 additions and 8 deletions

View File

@ -60,12 +60,6 @@ class SearchDiscoverFragment : BaseFragment() {
adapter = DiscoverRecyclerViewAdapter()
recycler.adapter = adapter
binding.discoverText.setCompoundDrawables(IconicsDrawable(requireContext(), GoogleMaterial.Icon.gmd_explore).apply {
sizeDp = 24
paddingDp = 20
color = IconicsColor.colorRes(R.color.colorDrawing)
}, null, null, null)
return binding.root
}

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M12,10.9c-0.61,0 -1.1,0.49 -1.1,1.1s0.49,1.1 1.1,1.1c0.61,0 1.1,-0.49 1.1,-1.1s-0.49,-1.1 -1.1,-1.1zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM14.19,14.19L6,18l3.81,-8.19L18,6l-3.81,8.19z"
android:fillColor="@color/colorDrawing"/>
</vector>

View File

@ -5,7 +5,9 @@
android:id="@+id/coordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<ProgressBar
android:id="@+id/progressBar"

View File

@ -56,7 +56,8 @@
android:text="@string/discover"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/errorLayout" />
app:layout_constraintTop_toBottomOf="@id/errorLayout"
app:drawableStartCompat="@drawable/explore_24dp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/discoverList"