Skip to content
Snippets Groups Projects
Commit f9b936f4 authored by Taras's avatar Taras
Browse files

Make empty placceholder view arrow gone by defaupl

parent 67e39534
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ class CirclesFragment : Fragment(org.futo.circles.core.R.layout.fragment_rooms),
binding.rvRooms.apply {
setEmptyView(EmptyTabPlaceholderView(requireContext()).apply {
setText(getString(R.string.circles_empty_message))
setArrowVisible(true)
})
addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
adapter = CirclesListAdapter(
......
......@@ -73,6 +73,7 @@ class GroupsFragment : Fragment(org.futo.circles.core.R.layout.fragment_rooms),
binding.rvRooms.apply {
setEmptyView(EmptyTabPlaceholderView(requireContext()).apply {
setText(getString(R.string.groups_empty_message))
setArrowVisible(true)
})
addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
adapter = listAdapter
......
......@@ -39,7 +39,6 @@ class IgnoredUsersDialogFragment :
binding.rvIgnoredUsers.apply {
setEmptyView(EmptyTabPlaceholderView(requireContext()).apply {
setText(getString(R.string.ignored_users_empty_message))
setArrowVisible(false)
})
adapter = usersAdapter
addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
......
......@@ -59,7 +59,6 @@ class PeopleFragment : Fragment(R.layout.fragment_people), MenuProvider {
binding.rvUsers.apply {
setEmptyView(EmptyTabPlaceholderView(requireContext()).apply {
setText(getString(R.string.people_empty_message))
setArrowVisible(false)
})
adapter = peopleAdapter
addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
......
......@@ -43,7 +43,6 @@ class KnockRequestsDialogFragment :
adapter = knocksListAdapter
setEmptyView(EmptyTabPlaceholderView(requireContext()).apply {
setText(getString(R.string.knock_requests_empty_message))
setArrowVisible(false)
})
addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
}
......
......@@ -29,13 +29,15 @@
android:adjustViewBounds="true"
android:rotation="40"
android:src="@drawable/ic_curved_arrow"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.65"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvEmptyMessage"
app:layout_constraintVertical_bias="0.45"
app:layout_constraintWidth_percent="0.5" />
app:layout_constraintWidth_percent="0.5"
tools:visibility="visible" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/glCenterVertical"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment